[PATCH] git-multimail: update to release 1.1.0

2015-07-03 Thread Matthieu Moy
The only change is a bugfix: the SMTP mailer was not working with
Python 2.4.

Signed-off-by: Matthieu Moy 
---
 contrib/hooks/multimail/CHANGES  |  5 +
 contrib/hooks/multimail/README   |  2 +-
 contrib/hooks/multimail/README.Git   |  4 ++--
 contrib/hooks/multimail/git_multimail.py | 12 +---
 4 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/contrib/hooks/multimail/CHANGES b/contrib/hooks/multimail/CHANGES
index 0b823d8..6bb1230 100644
--- a/contrib/hooks/multimail/CHANGES
+++ b/contrib/hooks/multimail/CHANGES
@@ -1,3 +1,8 @@
+Release 1.1.1 (bugfix-only release)
+===
+
+* The SMTP mailer was not working with Python 2.4.
+
 Release 1.1.0
 =
 
diff --git a/contrib/hooks/multimail/README b/contrib/hooks/multimail/README
index 3a33cb7..e552c90 100644
--- a/contrib/hooks/multimail/README
+++ b/contrib/hooks/multimail/README
@@ -1,4 +1,4 @@
-git-multimail Version 1.1.0
+git-multimail Version 1.1.1
 ===
 
 .. image:: https://travis-ci.org/git-multimail/git-multimail.svg?branch=master
diff --git a/contrib/hooks/multimail/README.Git 
b/contrib/hooks/multimail/README.Git
index 449d36f..f5d59a8 100644
--- a/contrib/hooks/multimail/README.Git
+++ b/contrib/hooks/multimail/README.Git
@@ -6,10 +6,10 @@ website:
 https://github.com/git-multimail/git-multimail
 
 The version in this directory was obtained from the upstream project
-on Jun 18 2015 and consists of the "git-multimail" subdirectory from
+on July 03 2015 and consists of the "git-multimail" subdirectory from
 revision
 
-1f0dbb3b60035767889b913df16d9231ecdb8709 refs/tags/1.1.0
+6d6c9eb62a054143322cfaecde3949189c065b46 refs/tags/1.1.1
 
 Please see the README file in this directory for information about how
 to report bugs or contribute to git-multimail.
diff --git a/contrib/hooks/multimail/git_multimail.py 
b/contrib/hooks/multimail/git_multimail.py
index 7cb2b36..c06ce7a 100755
--- a/contrib/hooks/multimail/git_multimail.py
+++ b/contrib/hooks/multimail/git_multimail.py
@@ -1745,14 +1745,20 @@ class SMTPMailer(Mailer):
 self.username = smtpuser
 self.password = smtppass
 try:
+def call(klass, server, timeout):
+try:
+return klass(server, timeout=timeout)
+except TypeError:
+# Old Python versions do not have timeout= argument.
+return klass(server)
 if self.security == 'none':
-self.smtp = smtplib.SMTP(self.smtpserver, 
timeout=self.smtpservertimeout)
+self.smtp = call(smtplib.SMTP, self.smtpserver, 
timeout=self.smtpservertimeout)
 elif self.security == 'ssl':
-self.smtp = smtplib.SMTP_SSL(self.smtpserver, 
timeout=self.smtpservertimeout)
+self.smtp = call(smtplib.SMTP_SSL, self.smtpserver, 
timeout=self.smtpservertimeout)
 elif self.security == 'tls':
 if ':' not in self.smtpserver:
 self.smtpserver += ':587'  # default port for TLS
-self.smtp = smtplib.SMTP(self.smtpserver, 
timeout=self.smtpservertimeout)
+self.smtp = call(smtplib.SMTP, self.smtpserver, 
timeout=self.smtpservertimeout)
 self.smtp.ehlo()
 self.smtp.starttls()
 self.smtp.ehlo()
-- 
2.5.0.rc0.7.ge1edd74.dirty

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] git-multimail: update to release 1.1.0

2015-06-18 Thread Matthieu Moy
The changes are described in CHANGES.

Contributions-by: Matthieu Moy 
Contributions-by: Richard Hansen 
Contributions-by: Michael Haggerty 
Contributions-by: Elijah Newren 
Contributions-by: Luke Mewburn 
Contributions-by: Dave Boutcher 
Contributions-by: Azat Khuzhin 
Contributions-by: Sebastian Schuberth 
Contributions-by: Mikko Johannes Koivunalho 
Contributions-by: Elijah Newren 
Contributions-by: BenoƮt Ryder 
Signed-off-by: Matthieu Moy 
---
 contrib/hooks/multimail/CHANGES|  48 +
 contrib/hooks/multimail/README | 279 --
 contrib/hooks/multimail/README.Git |   4 +-
 contrib/hooks/multimail/git_multimail.py   | 967 -
 contrib/hooks/multimail/migrate-mailhook-config|  18 +-
 .../{post-receive => post-receive.example} |  27 +-
 6 files changed, 1017 insertions(+), 326 deletions(-)
 rename contrib/hooks/multimail/{post-receive => post-receive.example} (74%)

diff --git a/contrib/hooks/multimail/CHANGES b/contrib/hooks/multimail/CHANGES
index 3603d56..0b823d8 100644
--- a/contrib/hooks/multimail/CHANGES
+++ b/contrib/hooks/multimail/CHANGES
@@ -1,3 +1,51 @@
+Release 1.1.0
+=
+
+* When a single commit is pushed, omit the reference changed email.
+  Set multimailhook.combineWhenSingleCommit to false to disable this
+  new feature.
+
+* In gitolite environments, the pusher's email address can be used as
+  the From address by creating a specially formatted comment block in
+  gitolite.conf (see multimailhook.from in README).
+
+* Support for SMTP authentication and SSL/TLS encryption was added,
+  see smtpUser, smtpPass, smtpEncryption in README.
+
+* A new option scanCommitForCc was added to allow git-multimail to
+  search the commit message for 'Cc: ...' lines, and add the
+  corresponding emails in Cc.
+
+* If $USER is not set, use the variable $USERNAME. This is needed on
+  Windows platform to recognize the pusher.
+
+* The emailPrefix variable can now be set to an empty string to remove
+  the prefix.
+
+* A short tutorial was added in doc/gitolite.rst to set up
+  git-multimail with gitolite.
+
+* The post-receive file was renamed to post-receive.example. It has
+  always been an example (the standard way to call git-multimail is to
+  call git_multimail.py), but it was unclear to many users.
+
+* A new refchangeShowGraph option was added to make it possible to
+  include both a graph and a log in the summary emails.  The options
+  to control the graph formatting can be set via the new graphOpts
+  option.
+
+* New option --force-send was added to disable new commit detection
+  for update hook. One use-case is to run git_multimail.py after
+  running "git fetch" to send emails about commits that have just been
+  fetched (the detection of new commits was unreliable in this mode).
+
+* The testing infrastructure was considerably improved (continuous
+  integration with travis-ci, automatic check of PEP8 and RST syntax,
+  many improvements to the test scripts).
+
+This version has been tested with Python 2.4 to 2.7, and Git 1.7.1 to
+2.4.
+
 Release 1.0.0
 =
 
diff --git a/contrib/hooks/multimail/README b/contrib/hooks/multimail/README
index 6efa4ff..3a33cb7 100644
--- a/contrib/hooks/multimail/README
+++ b/contrib/hooks/multimail/README
@@ -1,5 +1,8 @@
-  git-multimail
-  =
+git-multimail Version 1.1.0
+===
+
+.. image:: https://travis-ci.org/git-multimail/git-multimail.svg?branch=master
+:target: https://travis-ci.org/git-multimail/git-multimail
 
 git-multimail is a tool for sending notification emails on pushes to a
 Git repository.  It includes a Python module called git_multimail.py,
@@ -38,17 +41,17 @@ By default, for each push received by the repository, 
git-multimail:
list) makes it easy to scan through the emails, jump to patches
that need further attention, and write comments about specific
commits.  Commits are handled in reverse topological order (i.e.,
-   parents shown before children).  For example,
-
-   [git] branch master updated
-   + [git] 01/08: doc: fix xref link from api docs to manual pages
-   + [git] 02/08: api-credentials.txt: show the big picture first
-   + [git] 03/08: api-credentials.txt: mention credential.helper explicitly
-   + [git] 04/08: api-credentials.txt: add "see also" section
-   + [git] 05/08: t3510 (cherry-pick-sequence): add missing '&&'
-   + [git] 06/08: Merge branch 'rr/maint-t3510-cascade-fix'
-   + [git] 07/08: Merge branch 'mm/api-credentials-doc'
-   + [git] 08/08: Git 1.7.11-rc2
+   parents shown before children).  For example::
+
+ [git] branch master updated
+ + [git] 01/08: doc: fix xref link from api docs to manual pages
+ + [git] 02/08: api-credentials.txt: show the big picture first
+ + [git] 03/08: api-credentials.txt: mention credential.helper explicitly
+ + [git] 04/08: api-credentials.txt: add "