mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-12 06:05:39 +01:00
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>
This commit is contained in:
@@ -742,6 +742,10 @@ def do_export(parser):
|
|||||||
|
|
||||||
for ref, node in parsed_refs.iteritems():
|
for ref, node in parsed_refs.iteritems():
|
||||||
if ref.startswith('refs/heads/branches'):
|
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
|
print "ok %s" % ref
|
||||||
elif ref.startswith('refs/heads/'):
|
elif ref.startswith('refs/heads/'):
|
||||||
bmark = ref[len('refs/heads/'):]
|
bmark = ref[len('refs/heads/'):]
|
||||||
|
|||||||
Reference in New Issue
Block a user