Svn

From Wiki
Jump to navigationJump to search

Creating A Repository

  • Run './svncreate [public|private] <project>' on eta from root's home directory

Initial Import

  • svn import . http://tinymicros.com/svn_[public|private]/<project>/[sub_dir/]trunk -m 'Initial import'

Before importing, it's wise to create a trunk subdir, move the source files there, create tags and branches, then commit without the 'trunk' above.

  • svn propset svn:keywords "Id Revision Author Date HeadURL" [filenames or wildcards]

Enables the substitution of keywords (not automatically done, like CVS). Has to be done on a checked-out version.

Check Out

  • svn co http://tinymicros.com/svn_[public|private]/<project>/[sub_dir/]trunk [local_directory_name]

Creating A Tag

  • svn cp http://tinymicros.com/svn_[public|private]/<project>/[sub_dir/]trunk http://tinymicros.com/svn_[public|private]/<project>/[sub_dir/]tags/0.1.0 -m "Thermo graphs don't use real data"

Add User To svn

  • htpasswd -b /var/svn/conf/svnusers <username> <password>
  • Add user and permissions to /var/svn/conf/svnpolicy

Adding tags and branches directory

  • svn co http://tinymicros.com/svn_[public|private]/<project>
  • cd <project>
  • svn mkdir tags
  • svn mkdir branches
  • svn commit

Modifying a tag on a repository

  • svn propset --revprop -r4 'svn:log' 'New message'

Note that this requires a pre-revprop-change hook. See /var/svn/public/arm/hooks/pre-revprop-change for a template to copy.

Header For C

//
//  $Id$
//  $Revision$
//  $Date$
//  $Author$
//  $HeadURL$
//

Header For Perl, Shell Scripts

#
#  $Id$
#  $Revision$
#  $Date$
#  $Author$
#  $HeadURL$
#

Header For Assembly

;
;  $Id$
;  $Revision$
;  $Date$
;  $Author$
;  $HeadURL$
;

Header For Forth

\
\  $Id$
\  $Revision$
\  $Date$
\  $Author$
\  $HeadURL$
\

Resources

Notes

  • /etc/apache2/modules.d/47_mod_dav_svn.conf
  • /var/www/tinymicros.com/htdocs/websvn/include/config.php
  • Users are not permitted access to URL:/svn, only URL:/svn/project