Subversion version control tips.
Construct the URL from protocol "svn+ssh", the hostname and the full path to the repository and tree:
dleigh@:~> svn co svn+ssh://yallara/home/d/dleigh/repository/PP2B/ email@example.com's password: A project/AUTHORS A project/code A project/README A project/style.txt Checked out revision 4. dleigh@:~>
You can commit, update and so on as normal - subversion will remember the URL you used to access the repository.
By default keyword expansion is disabled in subversion - you can explicitly enable it per-file as follows:
svn propset svn:keywords "Id LastChangedDate Author" file1.c file2.java...
You can enable it by default when adding certain filetypes by setting
the following in your config file. In Unix, this is
~/.subversion/config"; in Windows, this is
C:\Documents and Settings\[username]\Application
Data\Subversion\config", assuming user profiles are
C:\Documents and Settings.
enable-auto-props = yes
*.c = svn:keywords=Id LastChangedDate Author *.cpp = svn:keywords=Id LastChangedDate Author *.java = svn:keywords=Id LastChangedDate Author (etc...)
hooks/ subdirectory of your repository create a file
post-commit (no extension) which should look similar
#!/bin/sh REPOS="$1" REV="$2" /full/path/commit-email.pl "$REPOS" "$REV" -s SVN:project-name user1@.abc.net user2@.abc.net...
This requires the commit-email.pl script that comes with subversion is properly set up on your system. You can find it in /usr/local/share/subversion/hook-scripts/commit-email.pl on FreeBSD 5.x.