Documentation

Links

Help

ISG

 

CGD Computing FAQs

Subversion: Code Revision System

CGD uses the Subversion Code Revision System (CRS).

Important! There is an extended Subversion FAQ created by ISG located - Visit the extended FAQ for more information.

Account Information

To open a Subversion repository, please with the following information:

  • Name of repository.
  • Person responsible the repository.
  • An organizational group name (more along the lines of political or use boundaries than section boundaries).
  • A list of users and what type of access they require (read-only, or read+write).

Description

The client for working with a subversion code respository is called "svn". Currently, "svn" is installed only on Poorman.

Features:

  • A dedicated server for the task.
  • High availability.
  • Access from both inside and outside NCAR for collaboration.
  • Secure username/password access.
  • Access restriction by read and read/write.
  • Support for binary files.
  • Support for multiple projects.

Downsides

  • Users do not have direct logins on the server.
  • Project and user creation are currently handled by myself.
  • Projects across the division must have unique names.
  • Personal repositories for users will be limited to 1 per user and will be named after the user's username.
  • The subversion client must be used to access the repository.

Other information:

  • The server is being backed up on a daily basis.
  • Tools are available to migrate existing CVS repositories to Subversion.

Web site

This website describes the current CGD Subversion repositories:

Documentation

Documentation for the "svn" client is located at:

Examples

Below is a _short_ session of adding code to a respository for the first time. Watch out for the line wraps indicated by "\".

[mmoore at talisker expire-0.0.1]$ pwd
/home/mmoore/work/expire-0.0.1
[mmoore at talisker expire-0.0.1]$ ls
./ ../ bin/ cfg/
[mmoore at talisker expire-0.0.1]$ svn list \
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/ -R
[mmoore at talisker expire-0.0.1]$ svn import . \
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/ -m "Initial load"
Adding cfg
Adding bin
Adding bin/kathy
Adding bin/nodes.cfg
Adding bin/useradd
Adding bin/exclude.cfg
Adding bin/expire-mod
Adding bin/expire.1
Adding bin/expire
Adding bin/usermod

Committed revision 2.
[mmoore at talisker expire-0.0.1]$ svn list \
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/ -R
bin/
bin/exclude.cfg
bin/expire
bin/expire-mod
bin/expire.1
bin/kathy
bin/nodes.cfg
bin/useradd
bin/usermod
cfg/
[mmoore at talisker expire-0.0.1]$ svn rm
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/bin/expire.1 \
"Remove extraneous code"
svn: Could not use external editor to fetch log message; consider
setting the $SVN_EDITOR environment variable or using the --message (-m)
or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is
set, and no 'editor-cmd' run-time configuration option was found
[mmoore at talisker expire-0.0.1]$ svn rm
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/bin/expire.1 \
-m "Remove extraneous code"

Committed revision 3.
[mmoore at talisker expire-0.0.1]$ svn rm
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/bin/kathy \
-m "Remove extraneous code"

Committed revision 4.
[mmoore at talisker expire-0.0.1]$ svn rm
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/bin/expire-mod \
-m "Remove extraneous code"

Committed revision 5.
[mmoore at talisker expire-0.0.1]$ svn list \
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/ -R
bin/
bin/exclude.cfg
bin/expire
bin/nodes.cfg
bin/useradd
bin/usermod
cfg/
[mmoore at talisker expire-0.0.1]$$ svn log \
https://mmoore@cvs-expire.cgd.ucar.edu/trunk/
--------------------------------------------------------------
r5 | mmoore | 2004-06-21 08:16:14 -0600 (Mon, 21 Jun 2004) | 1 line

Remove extraneous code
--------------------------------------------------------------
r4 | mmoore | 2004-06-21 08:14:00 -0600 (Mon, 21 Jun 2004) | 1 line

Remove extraneous code
--------------------------------------------------------------
r3 | mmoore | 2004-06-21 08:13:47 -0600 (Mon, 21 Jun 2004) | 1 line

Remove extraneous code
--------------------------------------------------------------
r2 | mmoore | 2004-06-21 08:12:42 -0600 (Mon, 21 Jun 2004) | 1 line

Initial load
--------------------------------------------------------------
r1 | root | 2004-06-21 08:12:16 -0600 (Mon, 21 Jun 2004) | 1 line

Initial repository layout for group sysadm project expire
--------------------------------------------------------------

If you have any other questions or concerns, please