What is the authors file format for git svn, especially for special characters such as backslashes or underscores?

I am trying to clone Papercut, a smtp server emulator

I get a list of SVN authors with svn log -q https://papercut.svn.codeplex.com/svn | grep -e '^r'| awk 'BEGIN {FS="|"};{print $2}'|sort|uniq svn log -q https://papercut.svn.codeplex.com/svn | grep -e '^r'| awk 'BEGIN {FS="|"};{print $2}'|sort|uniq svn log -q https://papercut.svn.codeplex.com/svn | grep -e '^r'| awk 'BEGIN {FS="|"};{print $2}'|sort|uniq , which gives me

 RNO\_MCLWEB SND\krobertson_cp 

I created the authors.txt file with the format SVN_User = UserName <Email> , but when I ran

 git svn clone --no-metadata -A authors.txt https://papercut.svn.codeplex.com/svn papercut 

he complains "Author: RNO \ _MCLWEB is not defined in the authors.txt file"

I tried putting \ in front of '\' and '_' to try to escape from them, and add quotes around the name, but it didn't work.

I cannot find a better description of the authors.txt file format than SVN_User = UserName <Email>

+12
git git-svn codeplex
Jan 29 '10 at 2:43
source share
3 answers

I hate being β€œthis guy,” but I just tried it and it worked well for me. Here is a copy of the authors file that I used:

 RNO\_MCLWEB = Ronald McDonald <dude@example.com> SND\krobertson_cp = Some Guy <someone@example.com> 

However, I used a slightly different method than you to generate author names following these guidelines . My special spell was:

 $ svn log --xml | grep author | sort -u | perl -pe 's/.>(.?)<./$1 = /' 

I also use Git 1.6.6.1 (I doubt it matters, but you never know).

I noticed that when I used your pipeline to get SVN authors, there were spaces in the resulting file before their SVN names (i.e. there was a space in column 1 on each line). I don’t know if it matters or not.

+19
Jan 29 '10 at 3:11
source share

I had the same problem but with apache user. There is a line in the authors' files similar to this one.

 apache = Apache 

or

 apache = Apache <> 

But when I installed it in

 apache = Apache <noreply@something.com> 

My repo started to clone normal. Make sure that you have correctly entered all the names of the authors and email, following the format

 svn_user_name = JustNameInGit <obligatory@email.com> 

Each field is required!

+10
Jan 24 '12 at 18:36
source share

I used the following, which helps to skip messages with words like "authorization" in them

 svn log --xml | grep /author | sort -u | perl -pe 's/.>(.?)<./$1 = /' > users.txt 
0
May 7, '13 at 20:26
source share



All Articles