Skip to content

Commit

Permalink
remote-hg: fix compatibility with older versions of hg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Jeff King committed Nov 12, 2012
1 parent 7241a9f commit cc8433f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def export_ref(repo, name, kind, head):
if tip and tip == head.rev():
# nothing to do
return
revs = repo.revs('%u:%u' % (tip, head))
revs = xrange(tip, head.rev() + 1)
count = 0

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

0 comments on commit cc8433f

Please sign in to comment.