projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7241a9f
)
remote-hg: fix compatibility with older versions of hg
author
Felipe Contreras
<felipe.contreras@gmail.com>
Mon, 12 Nov 2012 17:41:06 +0000
(18:41 +0100)
committer
Jeff King
<peff@peff.net>
Mon, 12 Nov 2012 20:34:53 +0000
(15:34 -0500)
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>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index 7929eec30b39280985a9d2b7147699d99e211817..bf5e5b473d39f95d0cfb7a42aacdcd2761d59734 100755
(executable)
--- 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)]