<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4588cd74916d5dab31e35f9f51c43621f3538f07">https://github.com/macports/macports-ports/commit/4588cd74916d5dab31e35f9f51c43621f3538f07</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 4588cd7 stgit: update to version 0.17
</span>4588cd7 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4588cd74916d5dab31e35f9f51c43621f3538f07
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Tue Nov 1 18:12:12 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> stgit: update to version 0.17
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Remove patches fixed by upstream, add patch for Gerrit integration,
</span><span style='display:block; white-space:pre;color:#404040;'> fix template paths.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes https://trac.macports.org/ticket/52773
</span>---
devel/stgit/Portfile | 18 ++++---
devel/stgit/files/gerrit-integration.diff | 78 +++++++++++++++++++++++++++++++
devel/stgit/files/template.diff | 14 ++++++
devel/stgit/files/tutorial.txt.patch | 9 ----
4 files changed, 103 insertions(+), 16 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/stgit/Portfile b/devel/stgit/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index af7a61e..71b5b08 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/stgit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/stgit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,8 +5,7 @@ PortSystem 1.0
</span> PortGroup python 1.0
name stgit
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.15
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.17.1
</span> categories devel python
license GPL-2
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,16 +29,21 @@ long_description StGIT is a Python application providing similar \
</span> homepage http://www.procode.org/stgit/
master_sites http://homepage.ntlworld.com/cmarinas/stgit/ \
http://download.gna.org/stgit/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 a4721b2a5f529cf5450109f9fcb4db19 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 8f18e3079014d907237aeffa6b851074422b7f27 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 3779091ed8639c825f053c66031b4569a6ffbdea
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 74cfb72865b3c290613ca355d360b47baa1c8351 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d43365a0c22e41a6fb9ba1a86de164d6475e79054e7f33805d6a829eb4056ade
</span>
depends_run port:git
python.default_version 27
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# ticket #27778
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles tutorial.txt.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles gerrit-integration.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ template.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/stgit/templates.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
set stgdocs "${worksrcpath}/Documentation/\\\[a-z\\\]*.txt"
set stgman ""
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/stgit/files/gerrit-integration.diff b/devel/stgit/files/gerrit-integration.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..ec067b1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/stgit/files/gerrit-integration.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,78 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From f82a2263762a955518e2efb7616f7d58a300819c Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Jamie Madill <jmadill@chromium.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 27 Nov 2013 13:20:27 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Honor commit-msg hook for 'new' and 'edit'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The commit-msg hook is important for gerrit users, where it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+generates a Change-Id.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Change-Id: Ic1fde9e13e5e903ac8807be37feb7a88a9844dce
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/stgit/commands/new.py b/stgit/commands/new.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index d5c5382..3328042 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/stgit/commands/new.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/stgit/commands/new.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from stgit.commands import common
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from stgit.lib import git as gitlib, transaction
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from stgit.config import config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++from stgit.lib import edit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ help = 'Create a new, empty patch'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ kind = 'patch'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -69,6 +70,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ author = gitlib.Person.author(), committer = gitlib.Person.committer())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cd = common.update_commit_data(cd, options)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # run the commit-msg hook
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cd = cd.set_message(edit.run_commit_msg_hook(stack.repository, cd.message))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if options.save_template:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ options.save_template(cd.message)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return utils.STGIT_SUCCESS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/stgit/lib/edit.py b/stgit/lib/edit.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c8d29f6..5993754 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/stgit/lib/edit.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/stgit/lib/edit.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3,6 +3,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from stgit import utils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from stgit.commands import common
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from stgit.lib import git
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++from stgit import run
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++from tempfile import NamedTemporaryFile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++import os
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++def run_commit_msg_hook(repo, message):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ """Run the commit-msg git hook manually when editing a patch.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ Return the edited commit message, or the original message if there
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ is no commit-msg hook."""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ hook_path = os.path.join(repo.directory, 'hooks', 'commit-msg')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if not os.access(hook_path, os.X_OK):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return message
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # message hook exists, make a temporary file and run on the temp file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tf = NamedTemporaryFile("w", delete=False)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tf.write(message)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tf.close()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ run.Run('bash', hook_path, tf.name).run()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ new_msg = open(tf.name, 'r').read()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ os.remove(tf.name)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return new_msg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def update_patch_description(repo, cd, text, contains_diff):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ """Update the given L{CommitData<stgit.lib.git.CommitData>} with the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,7 +44,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (git.Date.maybe(authdate), 'set_date')]:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if val != None:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ a = getattr(a, setter)(val)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- cd = cd.set_message(message).set_author(a)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cd = cd.set_message(run_commit_msg_hook(repo, message)).set_author(a)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ failed_diff = None
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if diff:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tree = repo.apply(cd.parent.data.tree, diff, quiet = False)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/stgit/files/template.diff b/devel/stgit/files/template.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5b0379e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/stgit/files/template.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff -urNp stgit-0.17.1.orig/stgit/templates.py stgit-0.17.1/stgit/templates.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- stgit-0.17.1.orig/stgit/templates.py 2006-07-11 12:21:38.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ stgit-0.17.1/stgit/templates.py 2016-11-01 19:01:47.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,7 +31,9 @@ def get_template(tfile):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os.path.join(os.path.expanduser('~'), '.stgit', 'templates',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tfile),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os.path.join(sys.prefix, 'share', 'stgit', 'templates',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- tfile) ]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tfile),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ os.path.join("@@PREFIX@@", 'share', 'stgit', 'templates',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tfile)]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tmpl = None
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for t in tmpl_list:
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/stgit/files/tutorial.txt.patch b/devel/stgit/files/tutorial.txt.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index db20cbc..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/stgit/files/tutorial.txt.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,9 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Documentation/tutorial.txt.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Documentation/tutorial.txt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1,5 +1,5 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- StGit tutorial
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--##############
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+==============
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- StGit is a command-line application that provides functionality
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- similar to link:http://savannah.nongnu.org/projects/quilt/[Quilt]
</span></pre><pre style='margin:0'>
</pre>