Skip to content

Commit cc8433f

Browse files
felipecpeff
authored andcommitted
remote-hg: fix compatibility with older versions of hg
Turns out repo.revs was introduced quite late, and it doesn't do anything fancy for our refspec; only list all the numbers in that range. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 7241a9f commit cc8433f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def export_ref(repo, name, kind, head):
294294
if tip and tip == head.rev():
295295
# nothing to do
296296
return
297-
revs = repo.revs('%u:%u' % (tip, head))
297+
revs = xrange(tip, head.rev() + 1)
298298
count = 0
299299

300300
revs = [rev for rev in revs if not marks.is_marked(rev)]

0 commit comments

Comments
 (0)