Retrieving the list of Subversion users

If your Subversion repository has been used by different people, you are probably interested in preserving commit author's names as is even in the new Git repository.
If the awk command is available (maybe using Git Bash shell or Cygwin while in Windows), there's a script here that fetches all the users from Subversion logs and appends them to a text file we can use in Git while cloning to perfectly match Subversion users even in Git-converted commits:

$ svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors.txt 

Now, we will use the authors.txt file in the next cloning step.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.22.169