mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-11 05:35:40 +01:00
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 <felipe.contreras@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
@@ -294,7 +294,7 @@ def export_ref(repo, name, kind, head):
|
|||||||
if tip and tip == head.rev():
|
if tip and tip == head.rev():
|
||||||
# nothing to do
|
# nothing to do
|
||||||
return
|
return
|
||||||
revs = repo.revs('%u:%u' % (tip, head))
|
revs = xrange(tip, head.rev() + 1)
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
revs = [rev for rev in revs if not marks.is_marked(rev)]
|
revs = [rev for rev in revs if not marks.is_marked(rev)]
|
||||||
|
|||||||
Reference in New Issue
Block a user