Reports until 16:38, Tuesday 13 February 2018
H1 CDS
david.barker@LIGO.ORG - posted 16:38, Tuesday 13 February 2018 - last comment - 10:41, Wednesday 14 February 2018(40521)
svn wrapper script to hopefully help with different versioned working directores

In the hope of making our lives simpler, I have created a wrapper bash script for svn commands. It checks the current working directory to determine which version of svn was used to create the directory, and then runs the appropriate version of svn client. It passes all the arguments given to itself onwards to the svn binary. The hope is that this is all totally transparent to the user.

The script is found in /ligo/cds/userscripts/svn which is a link to /opt/rtcds/userapps/release/cds/common/scripts/svn.bsh

If /ligo/cds/userscripts is ahead of /usr/bin in your PATH environment variable, you will be calling the wrapper script every time you run svn.

If you need to reconfigure your PATH to make this so, please add the following line to your .bashrc file in your home directory

export PATH=/ligo/cds/userscripts:/usr/bin:$PATH

you can confirm the path by typing 'which svn' which should return '/ligo/cds/userscripts/svn'

Now that the svn client version is tied to the working directory's version, you can find the version by running "svn --version"

For example, in /ligo/svncommon/SusSVN/sus/trunk/QUAD/H1/Common
svn, version 1.6.17 (r1128011)

whereas in /opt/rtcds/userapps/release/cds/common/scripts
svn, version 1.8.10 (r1615264)

code-listing

Comments related to this report
david.barker@LIGO.ORG - 10:41, Wednesday 14 February 2018 (40532)

A nice feature when checking out a brand new working directory is that, because there is no .svn directory, the script defaults to creating a 1.8 versioned working directory.