changeset 896eb3bbc186 in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset;node=896eb3bbc186
description:
        Do not rely on basectx.__init__

        It was removed from Mercurial in
        https://www.mercurial-scm.org/repo/hg/rev/38f480502043
diffstat:

 hgbranch.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b5701fd934fa -r 896eb3bbc186 hgbranch.py
--- a/hgbranch.py       Mon Dec 02 21:16:49 2019 +0100
+++ b/hgbranch.py       Sun Jan 26 15:44:15 2020 +0100
@@ -12,7 +12,7 @@
             'hook should be pretxncommit/pretxnchangegroup not "%s".' %
             hooktype)
 
-    for rev in xrange(repo[node], len(repo)):
+    for rev in xrange(repo[node].rev(), len(repo)):
         ctx = repo[rev]
         branch = ctx.branch()
         if not BRANCH_PATTERN.match(branch):

Reply via email to