User:Chrismeller/SVN Authors

From Habari Project

Jump to: navigation, search

Goal

When migrating an SVN repo to Github, an SVN Authors file is used to map old SVN users to their new Github accounts. In order for this to work properly you need the Github username and email address of each SVN user (just the Github username will not work). If a user does not exist or isn't specified with the proper email it's not a big deal, their old commits will simply not be linked to their Github accounts.

The Script

#!/usr/bin/env bash
authors=$(svn log -q http://svn.habariproject.org/habari/ | grep -e '^r' | awk 'BEGIN {FS = "|" } ; { print $2 }' | sort | uniq)
for author in ${authors}; do
	echo "${author} = NAME <USER@DOMAIN>";
done

The Output

Heilemann = NAME <USER@DOMAIN>
MattRead = MattRead <USER@DOMAIN>
RandyWalker = NAME <USER@DOMAIN>
arickmann = NAME <USER@DOMAIN>
arthus = NAME <USER@DOMAIN>
bjohnson = NAME <USER@DOMAIN>
brokenkode = NAME <USER@DOMAIN>
caius = Caius <USER@DOMAIN>
chrisdmitri = NAME <USER@DOMAIN>
chrisjdavis = NAME <USER@DOMAIN>
chrismeller = chrismeller <chris@doesnthaveone.com>
dmondark = NAME <USER@DOMAIN>
dragonmantank = NAME <USER@DOMAIN>
epithet = NAME <USER@DOMAIN>
freakerz = NAME <USER@DOMAIN>
gsnedders = NAME <USER@DOMAIN>
h0bbel = NAME <USER@DOMAIN>
ilo = NAME <USER@DOMAIN>
itrebal = NAME <USER@DOMAIN>
jaypipes = NAME <USER@DOMAIN>
lairmail = NAME <USER@DOMAIN>
lildude = NAME <USER@DOMAIN>
matt.r.read = NAME <USER@DOMAIN>
matthias.bauer = NAME <USER@DOMAIN>
michaeltwofish = michaeltwofish <USER@DOMAIN>
mikelietz = mikelietz <USER@DOMAIN>
miklb = NAME <USER@DOMAIN>
miklb.online = NAME <USER@DOMAIN>
moeffju = NAME <USER@DOMAIN>
morydd = NAME <USER@DOMAIN>
nemo8686 = Caius <USER@DOMAIN>
randy.walker = NAME <USER@DOMAIN>
rbowen = NAME <USER@DOMAIN>
rbowen2000 = NAME <USER@DOMAIN>
rickc = NAME <USER@DOMAIN>
ringmaster = ringmaster <USER@DOMAIN>
sean = NAME <USER@DOMAIN>
skippy = NAME <USER@DOMAIN>
smerrill = NAME <USER@DOMAIN>
tinster = NAME <USER@DOMAIN>
tinyau = NAME <USER@DOMAIN>
tinyau.vampire = NAME <USER@DOMAIN>
umbrae = NAME <USER@DOMAIN>
Personal tools
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Cannot contact the database server: Access denied for user 'habari'@'localhost' to database 'habari_wiki' (localhost))


You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.