aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2012-11-12 18:41:06 +0100
committerJeff King <peff@peff.net>2012-11-12 15:34:53 -0500
commitcc8433fad1f64ffaa9c1b8274c79f14419c42f78 (patch)
tree801559dd93b3ba91aefac7c746b2ec85d8928319
parent7241a9ffab73fe8f0f7eaa50149eaa24109350e5 (diff)
downloadgit-cc8433fad1f64ffaa9c1b8274c79f14419c42f78.tar.gz
git-cc8433fad1f64ffaa9c1b8274c79f14419c42f78.tar.xz
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>
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 7929eec30..bf5e5b473 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -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)]