Re: [WIP/PATCH] Teach fast-import to print the id of each imported commit
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Aug 17, 2010, 17:02 UTC
- Message-ID
- <20100817170216.GA14491@kytes>
- In-Reply-To
- <20100701054849.GA14972@burratino>
Hi,
Jonathan Nieder writes:
Show 24 quoted lines
> For the svn importer, it would be useful to have a map from > subversion revision numbers to git commits. This is particularly > relevant because the subversion api sometimes represents as "copy > this directory from this revision", and the importer needs to be > able to access the corresponding trees. So (optionally) print > each commit id when the corresponding object is written. > > Unfortunately when each commit object is written, it is not yet > accessible to the caller. The corresponding pack index > and header are not written until the next checkpoint finishes. > > Should fast-import accept lines of the form > > M 100644 <commit id>:<path> <path> > > and > > M 040000 <commit id>:<path> <path> > > to allow the caller to use commits before they are accessible > through the git object database? > > Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> > but definitely not ready for inclusion
I'm resurrecting this thread. We need to finish this feature before we can finish the dumpfilev3 support in svn-dump-fast-export.
-- Ram