Total Pageviews

Friday, December 6, 2013

SVN Administration (SVN user creation and directory access)

SVN  part 2 è SVN ADMINISTRATION

1.   How to create new user

[root@localhost]# htpasswd -md /etc/opt/CollabNet_Subversion/conf/svn_auth_file èenter

Password:è@@@@@@
Renter password è@@@@@@

2. How to provide rights to user

[root@localhost]# vi /etc/opt/CollabNet_Subversion/conf/svn_access_file

Open this file you will get this

è  [\]

= r  è this user will get only read permission
= rw è this user will get read-write permission


:wq! 
2.   HOW TO START AND STOP SVN SERVER

After installation of svn server on linux platform you can check the status of this service whether it is working or not via command 
[root@localhost]# lsof | grep 3326

In case if it is not working on your system.  you can start and stop this service using below command


[root@localhost]# ./etc/init.d/collabnet_subversion [start/stop/status/restart] 


List of files changed since a certain date using SVN

svn log -r {2016-09-01}:{2011-09-04} > log.txt (only shows the revisions and comments but not the files list)

--verbose (or -v) flag and you'll get a list of all affected paths as well as the log messages. If you want to get rid of the messages, add the --quiet (or -q) flag
svn log -qv -r {2016-09-01}:{2011-09-04} > log.txt


If you just want each changed file printed once (rather than for each revision in which it was changed), you could also do:
svn diff --summarize -r {2016-09-01}:{2011-09-04} > log.txt




No comments:

Post a Comment