Subject: Re: [WIP/PATCH] Teach fast-import to print the id of each imported commit

From: Ramkumar Ramachandra <[email-masked]>
Date: Tue, 17 Aug 2010 22:32:20 +0530

Hi,

Jonathan Nieder writes:
> 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 <[email-masked]>
> 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