Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: properly mark branches up-to-date
author
Felipe Contreras
<felipe.contreras@gmail.com>
Mon, 22 Apr 2013 21:55:12 +0000
(16:55 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Apr 2013 22:25:53 +0000
(15:25 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
846cc77
)
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index b6589a3df868a59054c8e86f0713b48cb7127bb3..a4db5b07bc1667d00ba3b03bc536655e33a36ca0 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-742,6
+742,10
@@
def do_export(parser):
for ref, node in parsed_refs.iteritems():
if ref.startswith('refs/heads/branches'):
+ branch = ref[len('refs/heads/branches/'):]
+ if branch in branches and node in branches[branch]:
+ # up to date
+ continue
print "ok %s" % ref
elif ref.startswith('refs/heads/'):
bmark = ref[len('refs/heads/'):]