See UsingCVS, CVS Home Site, CVS Manual, CVS Quick Ref

Adding/Introducing packages

Initial control, assuming new directory org in directory datacenter/src/ off the main CVS project (ie astrogrid) :

  • change directory to datacenter/src/org/
  • astrocvs import -m "Initial Checkin" astrogrid/datacenter/src/org AstroGrid start
  • Move up a directory and delete the org directory (bwahahaha - or for wimpy safety move the org directory elsewhere)
  • =astrocvs checkout datacenter/src/org <--- sets up all CVS directories/tags/etc

Initial control, assuming new directory pal off the main CVS project (ie astrogrid) :

  • change directory to .../pal/
  • astrocvs import -m "Initial Checkin" astrogrid/pal AstroGrid start
  • Move up to above the astrogrid directory and delete the astrogrid/pal directory (bwahahaha again - or for wimpy safety move the pal directory elsewhere)
  • astrocvs checkout astrogrid/pal <--- sets up all CVS directories/tags/etc

Adding a new org.astrogrid.

  • Use codeguide's 'add'...

Checking out a subpackage, eg org.astrogrid.xml.ui, where you want only the files in the ui package:

  • Make sure the directory does not exist (ie del org/astrogrid/xml/ui and then rd org/astrogrid/xml/ui, so that the CVS directory is created)
  • Change directory to the root of the source tree, ie ~/astrogrid/src
  • astrocvs checkout org/astrogrid/xml/ui

Branching

Tagging a Branch

cvs -d :ext:...@cvs.astrogrid.org:/devel rtag -b It04-Start astrogrid/datacenter
Tags the repository contents in the astrogrid/datacenter directory with the tag 'It04-Start'

Working on a Branch

Find a nice fresh clean directory and check out the branch with:

cvs -d :ext:...@cvs.astrogrid.org:/devel checkout -r It04-Start astrogrid/datacenter
This will give you the branched version. Now you work on that just as you would normally - add, diff, etc will all work on the branched version.

Undoing a CVS Remove

Assuming you haven't committed yet, basically you have to get the files out again and just recommit them. For individual files, you can get them out with update; for this you might want to do a cvs status to get the tags, then get each one out individually, yeuch.

Alternatively, because the 'remove' is only registered locally, just delete the directory in your local workspace, and re-update as normal.

Examples

eg directory ~/astrogrid/tools/src/ascii/

wanting to add this as a new ascii directory in the tools/src directory

Initial control:

  • Change directory to ~/astrogrid/tools/src/ascii
  • astrocvs import -m "Initial Checkin" ascii AstroGrid start

To add to 'tools' module:

  • astrocvs checkout CVSROOT
  • xemacs CVSROOT/modules
  • Change the line that starts "tools -a" to include 'ascii' eg tools -a ascii xml io util
  • astrocvs commit -m "added tools" CVSROOT

done.

To checkout:

  • Change directory to ~/astrogrid/tools/src
  • astrocvs checkout ascii
Topic revision: r12 - 2005-02-17 - 18:37:51 - MartinHill
 
AstroGrid Service Click here for the
AstroGrid Service Web
This is the AstroGrid
Development Wiki

This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback