Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b29515

Browse files
committed
Added a little helper line to get people started with authors file.
1 parent ab0f5e7 commit 4b29515

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.markdown

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,17 @@ svn2git will load it out of there. This allows you to build up one authors
132132
file for all your projects and have it loaded for each repository that you
133133
migrate.
134134

135+
If you need a jump start on figuring out what users made changes in your
136+
svn repositories the following command sequence might help. It grabs all
137+
the logs from the svn repository, pulls out all the names from the commits,
138+
sorts them, and then reduces the list to only unique names. So, in the end
139+
it outputs a list of usernames of the people that made commits to the svn
140+
repository which name on its own line. This would allow you to easily
141+
redirect the output of this command sequence to ~/.svn2git/authors and have
142+
a very good starting point for your mapping.
143+
144+
$ svn log | grep -E "r[0-9]+ \| [a-z]+ \|" | awk '{print $3}' | sort | uniq
145+
135146
Debugging
136147
---------
137148

0 commit comments

Comments
 (0)