Search/Navigation:
Related:
SLAC/EPP/HPS Public
Jefferson Lab/Hall B/HPS Run Wiki
S30XL-LESA/LDMX
...
All commands below assume that you are in a command shell like bash on Linux and that the current working directory is a local working copy of a structure node that has been checkout checked out of the repository.
Text written like this indicates a Subversion command that can be executed from your terminal.
Note that some (most) arguments to these commands like path/to/file are completely bogus and should be replaced by valid files in your working copy or the remote repository (depending on the command).
svn co svn://repo/some/dir
This command will print out general repository information like your current revision # and the repository root.
svn info
Check the status of your local working copy
This command will list all your changes and additions in the local working copy:
svn status
The svn co or svn checkout command is used to make a local copy of a remote file.
For instance, you can checkout the entire HPS Java trunk.
No Format |
---|
svn co svn://svn.freehep.org/hps/java/trunk |
By default, all sub-nodes will be checked out recursively.
You cannot actually checkout a single file from SVN, only structure nodes.
The svn info command will print out useful information about your working copy.
For instance, this is the result of that command executed on my copy of the HPS Java trunk.
No Format |
---|
[$] svn info
Path: .
Working Copy Root Path: /u1/projects/eclipse/luna/java_workspace/hps-java_trunk
URL: svn://svn.freehep.org/hps/java/trunk
Relative URL: ^/java/trunk
Repository Root: svn://svn.freehep.org/hps
Repository UUID: 044bc1e2-196f-4772-ab28-abfd6a072e98
Revision: 1275
Node Kind: directory
Schedule: normal
Last Changed Author: lcdprod
Last Changed Rev: 1272
Last Changed Date: 2014-10-22 16:44:16 -0700 (Wed, 22 Oct 2014)
|
By default svn info will look at the current working directory but it can also take a directory or file as an argument.
No Format |
---|
svn info parent/pom.xml
svn info parent |
You can use the svn info command to show the status of local files compared to their remote versions on the server.
From the root directory of your working copy, this command will show all changes that have been made to the node.
No Format |
---|
svn status |
This command will return a list of files and directories that are different from their remote copies.
Each file will have a letter next to it indicating its status, such as:
M =locally modified
? = not tracked by Subversion
A = added but not committed
D = deleted but not committed
etc.
Check the SVN docs for Here is a full list of all these abbreviationsstatus codes.
svn ls some/relative/path/
...