List All Subversion Committers

In preparation for migrating a large Subversion repository to GitHub, I needed to get a list of all of the Subversion committers throughout history, so that I could create a file mapping them to Git users. Here's how I did it:

svn log --quiet \
| grep '^r' | awk '{print $3}' | sort | uniq > committers.txt

Now I just have edit commiters.txt and I have my mapping file.


Andy Lester wrote:

Or use sort -u instead of sort | uniq.

I wish that Subversion had a more flexible output format for stuff like this, so we didn't have to make all these pipelines.