remote-hg: properly mark branches up-to-date
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
Apr 22, 2013 at 16:55 UTC
7e31e1fea5c827f392babacef1c8783313eb19c9
1 file changed
+4
contrib/remote-helpers/git-remote-hg
+4
@@ -742,6 +742,10 @@ def do_export(parser):
742
743
for ref, node in parsed_refs.iteritems():
744
if ref.startswith('refs/heads/branches'):
745
+ branch = ref[len('refs/heads/branches/'):]
746
+ if branch in branches and node in branches[branch]:
747
+ # up to date
748
+ continue
749
print "ok %s" % ref
750
elif ref.startswith('refs/heads/'):
751
bmark = ref[len('refs/heads/'):]