SVN commands

(in addition to official doc)

Links

Commands and help

Version of SVN
Check version with svn --version (should be 1.4). If not: Install proper version from RPMcompatSLC4

Install SVN
yum install subversion

svn help
svn help <command> e.g. svn help resolved

svn and password
If svn requires a password, try ssh svn.cern.ch and accept the update of the hostnames. See also .ssh/config.
Check if you have a valid kereberos ticket (update it by kinit if in doubt) and add the following to ~/.ssh/config:
    Host svn.cern.ch svn
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials yes
    Protocol 2
    ForwardX11 no

svn Atlas directories on web
Example: https://svn.cern.ch/reps/atlasoff/AtlasEvent, requires afs password.
   svn co https://svn.cern.ch/reps/atlasoff/AtlasEvent
Scan directories from trac
https://svnweb.cern.ch/trac/atlasoff/browser,   https://svnweb.cern.ch/trac/atlasgrp/browser,   https://svnweb.cern.ch/trac/atlasusr/browser,

Show future conflicts
svn status -u replaces cvs -n update -A
svn merge --dry-run

Info on SVN repository (UUID etc)
svn info $SVNROOT

Special Atlas setup at ccali
For releases >=15.3.0 python/svn is included in the distribution. At ccali for releases before 15.3.0 have to do once
   cp -a  /afs/cern.ch/atlas/software/dist/AtlasSettings/AtlasSettings-03-02-18/share  $HOME/mycmthome
and then each time after the usual source $HOME/cmthome/setup.sh
   export CMTHOME=$HOME/mycmthome
At ccali machines python with its module svn (here pysvn) are not installed at the place, where CMT expects them, namely /usr/local/python
 > source /usr/local/bin/python25_env.sh
 > python
>>> import pysvn;        # import svn does not work

Recursive checkout
The simple cmt -R command no longer works. Use instead the commands below. Example for checking out the full AtlasSimulation
   cmt co -R -r AtlasSimulation-15-02-00 -vd 15.2.0 AtlasSimulation
replace with
cat /afs/cern.ch/atlas/software/builds/AtlasSimulation/15.2.0/AtlasSimulationRelease/cmt/requirements | awk '{print $3}' > tags
pkgco -f tags
or
   cat /afs/cern.ch/atlas/software/builds/AtlasSimulation/15.2.0/AtlasSimulationRelease/cmt/requirements | awk '{print "cmt co -r " $3 " " $4 "/" $2}' > tags
   source tags

cmthome/requirements recommendations

cmthome/requirements
Use
   macro ATLAS_TEST_AREA "$PWD" 
and then
   cd <my work area>
   source ~/cmthome/setup.sh -tag=...
 


-- TraudlKozanecki - 08 Jun 2009
Edit | Attach | Watch | Print version | History: r21 < r20 < r19 < r18 < r17 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r21 - 2011-03-11 - TraudlKozanecki
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback