incremental fast-import and marks (Re: I have end-of-lifed cvsps)
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 18, 2013, 16:23 UTC
- Message-ID
- <20131218162239.GA26668@google.com>
- In-Reply-To
- <CANQwDwdgZUWcgyZCWoDni+e9jgQ+8j0Yn_HMxiMn5OHzsRzjwQ@mail.gmail.com>
Jakub Narebski wrote:
> It is a bit strange that markfile has explicitly SHA-1 (":markid <SHA-1>"),
> instead of generic reference to commit, in the case of CVS it would be
> commitid (what to do for older repositories, though?), in case of Bazaar
> its revision id (GUID), etc.Usually importers use at least two separate files to save state, one mapping between git object names and mark numbers, and the other mapping between native revision identifiers and mark numbers. That way, when the importer uses marks to refer to previously imported commits or blobs, fast-import knows what commits or blobs it is talking about.