Difference: G4SVNDoc (29 vs. 30)

Revision 302011-01-13 - PrzemyslawPaprocki

Line: 1 to 1
 
META TOPICPARENT name="PrzemyslawPaprocki"
-- PrzemyslawPaprocki - 02-Nov-2010
Line: 153 to 153
 

checkout it

In the desired directory You can run command
Changed:
<
<
svn co svn+ssh://svn.cern.ch/reps/g4tools/trunk/svntools/g4svn g4svn
>
>
svn co svn+ssh://USERNAME@svn.cern.ch/reps/g4tools/trunk/svntools/g4svn g4svn
  to get the most current version of g4svn.

from Geant4 dev area

Line: 254 to 254
 

Possible ARG values

list
 
Changed:
<
<
g4svn checkout list
>
>
g4svn checkout --login=USERNAME list
  Will print You available tags and branches on geant4 i.e.:
Line: 287 to 287
 
trunk
g4svn gives You possibility to checkout the trunk of the Geant4 project:
Changed:
<
<
g4svn checkout trunk
>
>
g4svn checkout --login=USERNAME trunk
 

tag name

If You want to checkout a reference tag, i.e geant4-09-03-ref-07 then the command in g4svn would be:

Changed:
<
<
g4svn checkout geant4-09-03-ref-07
>
>
g4svn checkout --login=USERNAME geant4-09-03-ref-07
 

branch name

If You want to checkout a branch then You have to choose branch name from the list given by command g4svn co list and then:

Changed:
<
<
g4svn checkout --co-branch geant4-SOME-BRANCH
>
>
g4svn checkout --co-branch --login=USERNAME geant4-SOME-BRANCH
 

Available options

Changed:
<
<
>
>
  • -l(--login) - CERN login, in general this option is needed when You first interact with Geant4 SVN repository,
 
  • --co-branch, --branch - flag indicating that g4svn should checkout the branch,
  • --dir-name - destination directory of the checkout, default: geant4

Examples

Checkout Geant4 trunk to directory geant4
Changed:
<
<
g4svn checkout trunk
>
>
g4svn checkout --login=USERNAME trunk
 
Checkout Geant4 tag to directory geant4
Changed:
<
<
g4svn checkout geant4-09-03-ref-07
>
>
g4svn checkout --login=USERNAME geant4-09-03-ref-07
 
Checkout Geant4 branch to directory geant4-branch
Changed:
<
<
g4svn checkout --dir-name=geant4-branch --branch geant4-SOME-BRANCH
>
>
g4svn checkout --login=USERNAME --dir-name=geant4-branch --branch geant4-SOME-BRANCH
 

b) Switch

Line: 685 to 685
  The first step is to checkout some Geant4 version. In this example You will be working on the reference tag geant4-09-03-ref-07.
Changed:
<
<
g4svn checkout geant4-09-03-ref-07
>
>
g4svn checkout --login=USERNAME geant4-09-03-ref-07
  This command will checkout the reference tag geant4-09-03-ref-07 to the geant4 directory.

switch

Changed:
<
<
You checkouted a reference tag geant4-09-03-ref-07 using g4svn checkout geant4-09-03-ref-07 command and now You want to work on the category event (geant4/source/event). If You go to that category (cd geant4/source/event) and invoke command svn info then You will see similar output to:
>
>
You checkouted a reference tag geant4-09-03-ref-07 using g4svn checkout --login=USERNAME geant4-09-03-ref-07 command and now You want to work on the category event (geant4/source/event). If You go to that category (cd geant4/source/event) and invoke command svn info then You will see similar output to:
 
Path: .
URL: svn+ssh://svn.cern.ch/reps/geant4/tags/geant4/_symbols/geant4-09-03-ref-07/source/event
Line: 806 to 806
  SVN & g4svn:
Changed:
<
<
1: g4svn checkout geant4-09-03-ref-07
>
>
1: g4svn checkout --login=USERNAME geant4-09-03-ref-07
 2: cd /geant4/source/geometry/magneticfield 3: g4svn switch trunk 4: <>
Line: 819 to 819
 
CVS SVN
Check out the current HEAD of the repository
Changed:
<
<
cvs checkout geant4 g4svn co trunk
>
>
cvs checkout geant4 g4svn co --login=USERNAME trunk
 
To update the local geant4/ tree and checkout from the repository all last modifications and new files. Being in geant4:
cvs update –d –P svn update
To see what is changed from the current HEAD version in the repository and the local tree geant4/. Being in geant4
Line: 829 to 829
 
To update a category to HEAD (therefore removing sticky tags for that category), checking-out possible new files (-d option) and pruning (-P option) empty directories. Example for run category, being in geant4/source/run
cvs update -A -d -P g4svn switch trunk
To checkout a released tree (e.g. tag "geant4-09-03-ref-07")
Changed:
<
<
cvs checkout -r geant4-09-03 -d geant4 g4svn checkout geant4-09-03-ref-07
>
>
cvs checkout -r geant4-09-03 -d geant4 g4svn checkout --login=USERNAME geant4-09-03-ref-07
 
To update to a specific reference tag (e.g. tag "geant4-09-03-ref-07"). Being in geant4
cvs update -r geant4-09-03-ref-07 -d –P g4svn switch geant4-09-03-ref-07
Line: 857 to 857
 

checkout

Changed:
<
<
g4svn checkout -v --dir-name=g4 geant4-09-03-ref-07
>
>
g4svn checkout -v --dir-name=g4 --login=USERNAME geant4-09-03-ref-07
  Output:
Line: 870 to 870
 Checking out (Please wait):

[DEBUG] Invoking command:

Changed:
<
<
svn checkout svn+ssh://svn.cern.ch/reps/geant4/tags/geant4/_symbols/geant4-09-03-ref-07/ g4
>
>
svn checkout svn+ssh://USERNAME@svn.cern.ch/reps/geant4/tags/geant4/_symbols/geant4-09-03-ref-07/ g4
 A g4/source A g4/source/event A g4/source/event/test
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback