Skip to content

Commit

Permalink
Also still track notes HEAD during import
Browse files Browse the repository at this point in the history
  • Loading branch information
mnauw committed Aug 13, 2016
1 parent 7d82847 commit 4f910f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,11 @@ def export_ref(repo, name, kind, head):
# continue incrementally on current notes branch (whenever possible)
# to avoid wiping out present content upon fetch of new repo
current_note = rev_parse(ref)
if current_note:
if current_note and not len(notes):
print 'from %s^0' % (ref)
# but track along with the previous ref as import goes along
elif marks.last_note:
print "from :%u" % (marks.last_note)

for rev in pending_revs:
notes.add(rev)
Expand Down

0 comments on commit 4f910f6

Please sign in to comment.