Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn2git failing saying Author: VisualSVN Server not defined in ./authors.txt file

Tags:

git

svn

I am trying to migrate to git from svn and it fails by throwing the below error:

sethu@csmartserver:~/csmart/git/csmart$ sudo /var/lib/gems/1.8/bin/svn2git http://localhost/svn/csmart --authors ./authors.txt --verbose
Running command: git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches http://localhost/svn/csmart
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_IN:en",
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_IN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Running command: git config --local svn.authorsfile ./authors.txt
Running command: git svn fetch 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_IN:en",
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_IN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Author: VisualSVN Server not defined in ./authors.txt file

command failed:
2>&1 git svn fetch 

My authors.txt file is of the below format:

jdoe = John Doe <[email protected]>

Could anyone help understand how to fix this issue please?

like image 401
sethu Avatar asked Jan 23 '12 11:01

sethu


People also ask

What port does VisualSVN server use?

This setting allows you to configure VisualSVN Server to use a specific TCP port. By default the server uses port 443 for HTTPS and port 80 for HTTP. If the default ports are occupied by other applications, it is suggested to use the 8443 and 8080 ports instead. Non-standard ports can also be used if required.

How do I add a user to VisualSVN?

To create a user on the VIsualSVN server, open the VisualSVN server manager. Right-click on User option and after that Create user.


3 Answers

Just ran into this. For svn2git, you'll need to add a line in your Authors file like follows:

VisualSVN Server = Visual SVN Server <[email protected]>
like image 171
basicdays Avatar answered Jan 04 '23 13:01

basicdays


The solution that worked for me: Encoding of the authors-transform file on Windows must be "UFT-8 without BOM".

Just use some smart editor that can do the convertion.

like image 41
Michael Avatar answered Jan 04 '23 12:01

Michael


I would skip that script altogether unless it does something you need

Assuming your repo has the normal trunk/ branches/ tags/ layout

mkdir csmart
cd csmart
git svn init http://localhost/svn/csmart
git svn fetch

Ought to do the trick

like image 37
richo Avatar answered Jan 04 '23 13:01

richo