Browse Source

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>
maint
Felipe Contreras 12 years ago committed by Junio C Hamano
parent
commit
7e31e1fea5
  1. 4
      contrib/remote-helpers/git-remote-hg

4
contrib/remote-helpers/git-remote-hg

@ -742,6 +742,10 @@ def do_export(parser): @@ -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/'):]

Loading…
Cancel
Save