Rev 2: exit nonzero when the ancestry is not shared. in http://bzr.arbash-meinel.com/plugins/share_ancestry
John Arbash Meinel
john at arbash-meinel.com
Wed Feb 10 14:39:23 GMT 2010
At http://bzr.arbash-meinel.com/plugins/share_ancestry
------------------------------------------------------------
revno: 2
revision-id: john at arbash-meinel.com-20100210143902-z9v8wat4y949r3q4
parent: john at arbash-meinel.com-20100210143800-wzk2naoe7xrzfr8a
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: share_ancestry
timestamp: Wed 2010-02-10 08:39:02 -0600
message:
exit nonzero when the ancestry is not shared.
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2010-02-10 14:38:00 +0000
+++ b/__init__.py 2010-02-10 14:39:02 +0000
@@ -38,8 +38,10 @@
self.outf.write('is %s ancestry in %s: ' % (branch1, branch2))
if self._is_ancestry_in_other(b1, b2):
self.outf.write('yes\n')
+ return 0
else:
self.outf.write('no\n')
+ return 1
#self.outf.write('is %s ancestry in %s: ' % (branch2, branch1))
#if self._is_ancestry_in_other(b2, b1):
# self.outf.write('yes\n')
More information about the bazaar-commits
mailing list