The following are some useful subversion commands
A useful reference is http://svnbook.red-bean.com/en/1.4/svn.branchmerge.commonuses.html
svn copy -m "Create new branch" https://svn.atnf.csiro.au/difx/libraries/mark5access/trunk https://svn.atnf.csiro.au/difx/libraries/mark5access/branches/NEWBRANCH
Note this may be easier on Subversion 1.5 and newer - see below
> svn log -v --stop-on-copy ------------------------------------------------------------------------ r4048 | ChrisPhillips | 2011-12-08 08:00:08 +1100 (Thu, 08 Dec 2011) | 1 line Changed paths: A /mpifxcorr/branches/askap (from /mpifxcorr/trunk:4029) askap branch ------------------------------------------------------------------------
> svn update At revision 4152.
> svn merge -r 4029:4152 https://svn.atnf.csiro.au/difx/mpifxcorr/trunk
alternatively
> svn merge -r 4029:4152 ^/mpifxcorr/trunk
With newer versions of subversion, you can just do something like (from a clean copy of branch):
> svn merge ../../trunk
If a change has been made on a branch which you want to copy back to trunk
> cd $DIFXROOT/libraries/difxio/trunk/difxio > svn merge -c NN ^/master_tags/DiFX-2.8/libraries/difxio/difxio/difx_eop.c > svn commit -m "Merge from DIFX-2.8 branch"
If you want to abandon unwanted local modifications
> svn revert Makefile.am
If you cannot remember the URL for the base repository,
> svn info
> cd mybranch > svn log -v --stop-on-copy | sed -n '/AUTHORNAME/,/------/p' |
Change AUTHORNAME to your subversion username