Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Script tagCollector.py has been committed to CVS (grits-tools/python/tagCollector.py). This page has been updated for version 1.911.

The most recent version of the tagCollector.py script should be used. On SLAC linux, the most recent version is maintained at

/afs/slac.stanford.edu/g/glast/ground/scripts/tagCollector.py

Note
titleInterface changes

Version 1.11 has the additional flag --fake. The options --real and --verbose are now also true flags, taking no argument.

Functionality

To start, will just handle the most common activities:

...

Here is the help output:

Wiki Markup
jrb@noric11 $ python tagCollector.py \--hhelp
Usage:  tagCollector.py \[options\] container,
   e.g. tagCollector.py \--new=HEAD ScienceTools

See also https://confluence.slac.stanford.edu/x/GgFyBQ  

Wiki Markup
Options:
  \-h, \--help            show this help message and exit
  \-p PARENT, \--parent=PARENT
                        HEAD or (branched) release tag to act as base
                        \[default: HEAD\]
  \-n NEWTAG, \--new=NEWTAG
                        HEAD or specific tag to create; required option
  \-u UPGRADEFILE, \--upgrade_list=UPGRADEFILE
                        File listing packages to upgrade, add or remove; used
                        only when creating a new HEAD \[default: upgrade.txt\]
  \-r FORREAL, \--for_real=FORREAL
            Really do it \[default: not set\]
  \-f, \--fake            Really do it or just Just print what we \*would\* do
                        \[default: Falseyes\]
  \-v VERBOSE, \--verbose=VERBOSE
                        If Trueset show all cvs command output and do not delete
                        temp files or tags \[default: not Falseset\]

In this version PARENT can only be HEAD. In order to set the FORREAL or VERBOSE options to True, you must type the entire word, e.g.

...

Here is a sample upgrade file:

No Format
#a comment# Upgrade for ScienceTools
// another sort of comment

 u  dataSubselector facilitiesdataSubselector facilities08-02-19-02
 r  sourcelike

 a xmlUtil xmlUtil-03-04-0101
 u  tip             tip-02-17-01

#  One can also add or remove packages from HEAD, e.g.
#  a  myNewPackage   myNewPackage-00-00-01
#  r  obsoletePackage

and here is part of the and here is output when it was used as the value for upgrade_list.  (This is output from an old version.  The version in CVS does more and says more, mostly having to do with maintenance of a file packageList.txt.)

No Format
$ python tagCollector.py ScienceTools --new=HEAD
tagCtn was invoked with argument ScienceTools and options
parent= HEAD
new= HEAD
upgrade_list= upgrade.txt
for_real= False
verbose= False

about to issue command
cvs rlog -b ScienceTools-scons/SConstruct
lastHeadTag is: ScienceTools-HEAD-1-823

about to issue command
cvs rtag -r ScienceTools-HEAD-1-823 ScienceTools-HEADTMP-1-824 ScienceTools-scons
Just fooling; it wasn't for real

about to issue command
cvs rtag -d ScienceTools-HEADTMP-1-824 facilities
Just fooling; it wasn't for real

about to issue command
cvs rtag -r facilities-02-19-02 ScienceTools-HEADTMP-1-824 facilities
Just fooling; it wasn't for real

about to issue command
cvs rtag -d ScienceTools-HEADTMP-1-824 sourcelike
Just fooling; it wasn't for real

about to issue command
cvs rtag -r xmlUtil-03-04-01 ScienceTools-HEADTMP-1-824 xmlUtil
Just fooling; it wasn't for real

about to issue command
cvs rtag -r ScienceTools-HEADTMP-1-824 HEAD-1-824 ScienceTools-scons
Just fooling; it wasn't for real

about to issue command
cvs rtag -d ScienceTools-HEADTMP-1-824 ScienceTools-scons
Just fooling; it wasn't for real

...