Skip to content

Commit

Permalink
vcs-svn: save marks for imported commits
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Nieder committed Mar 7, 2011
1 parent d38f844 commit 78e1a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vcs-svn/fast_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 78e1a3f

Please sign in to comment.