From: Jonathan Nieder Date: Fri, 10 Dec 2010 00:57:13 +0000 (-0600) Subject: vcs-svn: save marks for imported commits X-Git-Tag: v1.7.10-rc0~118^2~4^2~5^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=78e1a3ff236af3afaf1ba9db92985df42141cb0e;p=git.git vcs-svn: save marks for imported commits This way, a person can use svnadmin dump $path | svn-fe | git fast-import --relative-marks --export-marks=svn-revs to get a list of what commit corresponds to each svn revision (plus some irrelevant blob names) in .git/info/fast-import/svn-revs. Signed-off-by: Jonathan Nieder Signed-off-by: David Barr Signed-off-by: Jonathan Nieder --- diff --git a/vcs-svn/fast_export.c b/vcs-svn/fast_export.c index 70bd9597e..0ad5382bf 100644 --- a/vcs-svn/fast_export.c +++ b/vcs-svn/fast_export.c @@ -63,6 +63,7 @@ void fast_export_commit(uint32_t revision, uint32_t author, char *log, *gitsvnline = '\0'; } printf("commit refs/heads/master\n"); + printf("mark :%"PRIu32"\n", revision); printf("committer %s <%s@%s> %ld +0000\n", ~author ? pool_fetch(author) : "nobody", ~author ? pool_fetch(author) : "nobody",