Make --hg-hash work in incremental mode
commitf75057e49a085d2d405cb9f59991753fe0b9adaf
authorFrej Drejhammar <frej.drejhammar@gmail.com>
Sun, 10 Jan 2016 13:00:02 +0000 (10 14:00 +0100)
committerFrej Drejhammar <frej.drejhammar@gmail.com>
Sun, 10 Jan 2016 13:00:02 +0000 (10 14:00 +0100)
tree1ed5d7b2b57fe6ee6be4230bb689c8bc8549d9bd
parent042f0728cc95679f24f380568819c07955ac453f
Make --hg-hash work in incremental mode

When an import is restarted the first new note commit must use
refs/notes/hg^0 as the parent. As refs/notes/hg is only updated at the
end of a session we cannot have it present in all note commits. Neither
can we generate new marks for note commits as that would require a new
mapping scheme from hg versions numbers to git marks. A new mapping
scheme would break existing incremental import setups.

We therefore restructure the code to do the notes at the end of an
import session, thus only requiring a refs/notes/hg^0 reference in the
first commit.
hg-fast-export.py