[Libreoffice-commits] dev-tools.git: bibisect/mergeranges
Robinson Tryon
qubit at runcibility.com
Thu Jan 23 02:44:03 PST 2014
bibisect/mergeranges | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 1083bdc0ade3293323bd5eaca43b87873f086328
Author: Robinson Tryon <qubit at runcibility.com>
Date: Wed Dec 4 04:37:47 2013 -0500
Bibisect: Update the 'latest' tag when the merge is done
Change-Id: I331d88729ac6e7fed9bb651e0d79192f25ff6da4
Reviewed-on: https://gerrit.libreoffice.org/6917
Reviewed-by: Björn Michaelsen <bjoern.michaelsen at canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen at canonical.com>
diff --git a/bibisect/mergeranges b/bibisect/mergeranges
index 6b6f84c..abe92a5 100755
--- a/bibisect/mergeranges
+++ b/bibisect/mergeranges
@@ -8,6 +8,10 @@
import sys
import subprocess
+# Helper function to run code in a subprocess.
+def subrun(arglist):
+ return subprocess.check_output(arglist).decode('utf-8')
+
def justrunit(arglist):
print(subprocess.check_output(arglist).decode('utf-8'))
@@ -59,3 +63,10 @@ for line in open(sys.argv[1]).readlines():
init_branch(revision)
else:
cherry_pick_theirs(revision)
+
+# Tag the latest commit.
+justrunit(['git', 'tag', '-f', 'latest',
+ subrun(['git', 'rev-parse', 'HEAD']).rstrip()])
+
+print("")
+print("Mergeranges: script done.")
More information about the Libreoffice-commits
mailing list