summaryrefslogtreecommitdiff
path: root/vcs-svn/fast_export.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-12-10 00:57:13 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2011-03-07 07:43:57 (GMT)
commit78e1a3ff236af3afaf1ba9db92985df42141cb0e (patch)
treef678e5518b86ca3567d42d753863fcc545376fab /vcs-svn/fast_export.c
parentd38f84484f21e7e509ff009d3a17167c9c09f893 (diff)
downloadgit-78e1a3ff236af3afaf1ba9db92985df42141cb0e.zip
git-78e1a3ff236af3afaf1ba9db92985df42141cb0e.tar.gz
git-78e1a3ff236af3afaf1ba9db92985df42141cb0e.tar.bz2
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 <jrnieder@gmail.com> Signed-off-by: David Barr <david.barr@cordelta.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'vcs-svn/fast_export.c')
-rw-r--r--vcs-svn/fast_export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcs-svn/fast_export.c b/vcs-svn/fast_export.c
index 70bd959..0ad5382 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",