mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-01-30 18:19:03 +01:00
Call node.rev() instead of int(node)
The int(node) method has been removed in 4.6. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -463,9 +463,9 @@ def mark_to_rev(mark):
|
||||
# Get a range of revisions in the form of a..b (git committish)
|
||||
def gitrange(repo, a, b):
|
||||
positive = []
|
||||
pending = set([int(b)])
|
||||
negative = set([int(a)])
|
||||
for cur in xrange(b, -1, -1):
|
||||
pending = set([b.rev()])
|
||||
negative = set([a.rev()])
|
||||
for cur in xrange(b.rev(), -1, -1):
|
||||
if not pending:
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user