nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

How to maintain svn revision number in svn2git migration repository #268

Open nimmanapallivenu opened 6 years ago

nimmanapallivenu commented 6 years ago

Recently one of my Svn project migrated to git using svn2git, is it possible to maintain old revision number in migrated git repository?

Alex-Ayala-Bonilla commented 5 years ago

Have you figured out this ?

BKenkel commented 5 years ago

If you use -m or --metadata you get a string appended to the commit message with the following format:

git-svn-id: <svn_repo_url>/<trunk or name of branch>@<rev_number> <hash sort of thing that I haven't look at too much>

This is native to the git svn clone.