| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Subversion

Page history last edited by Manuel Kueblboeck 13 years, 5 months ago

Subversion is an open source version control system. It has many features, including most features from CVS. Subversion was originally designed to be a better CVS.

 

SVN client

If your OS is Windows I suggest you use TortoiseSVN as Subversion client, which is implemented as a windows shell extension.

 

Post commit hook

Sample post commit hook to trigger a Hudson build (compare Hudson Subversion plugin):

in the file /var/lib/svn/repos/<repo name>/hooks/post-commit add

REPOS="$1"
REV="$2"

UUID=`svnlook uuid $REPOS`
/usr/bin/wget \
  --header "Content-Type:text/plain;charset=UTF-8" \
  --post-data "`svnlook changed --revision $REV $REPOS`" \
  --output-document "-" \
  http://path/to/hudson/subversion/${UUID}/notifyCommit?rev=$REV

 

Copying folders out of SVN

When copying folders out of SVN it will also copy the .svn folders with the repository information. To get rid of these you can run the following command on Windows:

for /d /r . %d in (.svn) do @if exist "%d" rd /s/q "%d"

on Unix:

find -name \.svn -exec rm -R {} \;

Make a file executable on Unix

$ svn propset svn:executable ON somescript

 

Alternative

Git is supposedly faster than Subversion and has its strengths in distributed environments, merging and branching.

Comments (0)

You don't have permission to comment on this page.