svn

svn

How to create new SVN repository

Posted April 14th, 2012 by admin

1. open

/etc/httpd/conf.d/subversion.conf

2. add appropriate section for new repository:

<Location /svn-repository>
DAV svn
SVNPath /srv/svn/repository
AuthType Basic
AuthName "repository Repository"
AuthzSVNAccessFile /srv/svn/svn-acl-conf
AuthUserFile /srv/svn/repository.htpasswd
Require valid-user
</Location>

3. Create new htpasswd file by:

htpasswd -cm /srv/svn/repository.htpasswd repository
New password:

Re-type new password:

4. Create repository dir:


cd /srv/svn
svnadmin create repository
chown -R apache.apache repository

5. Restart httpd service:

service httpd restart

svn: Can't convert string from 'UTF-8' to native encoding:

Posted April 7th, 2012 by admin

Error:
svn: Can't convert string from 'UTF-8' to native encoding

Resolve:

$ export LC_CTYPE=en_US.UTF-8
$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL="C/en_US.UTF-8/C/C/C/C"

When do SVN UPDATE - authentication needed

Posted April 6th, 2012 by admin

svn authentication is stored in the ../.subversion directory. Check that it exists and your user has access to store information in it.

VIM for SVN commit

Posted April 6th, 2012 by admin

put into .bashrc

export SVN_EDITOR=vim

svn cleanup error: file is not under version control

Posted April 6th, 2012 by admin

1. Delete the `log` file in the .svn directory
2. Delete .svn/props-base
3. svn cleanup

Syndicate content