The following is the usage print out using either no command line arguments or the -h or --help arguments:

        Tags a given working copy and can optionally freeze
        externals found in the folders of the working copy.
        Also can optionally add unversioned files and folders
        found within the working copy and commit them to a tag
        or any other given SVN location.

svntagwc USAGE:
      --wc=PATH              use the local working copy at the
                                given PATH
  -t, --tag=URL              copy the working copy to the given
                               fully qualified URL
  -f, --force                force yes to interactive user input
  -a, --add                  recursively add all unversioned files
                               in the given working copy
  -d, --add-depth=VALUE      depth to pass to svn add.
                               Must be one of the following: 'infinity',
                               'immediates', 'files', 'empty'.
                               ('infinity' is the default)
  -m, --message              SVN log message to use when tagging
  -h, --help                 show this help message
  -v, --verbose              enables extra output

SVNTAGWC Internals

svntagwc uses extremely useful NDesk.Options for command line options parsing.

The utility is also setup so that it will retrieve the URL from the (presumed local) working copy specified. It will then pull the external URLs using the working folder's URL. It polls the external URL for the latest revision and will write the appropriate new svn:external property to a file.

This new property will have the latest revision of the external specified by -rX where X = the latest revision of the external. This file can then be used to set the property or it can just be used to see what the latest external revisions are. This file will remain in the same directory where the utility is located.

Also, optionally, the next step would be to copy the working copy to a new URL (this would most likely be to the URL of a tag). If the URL is not given as an argument it will be requested from the user.

Last edited Aug 27, 2010 at 8:12 PM by cmw69krinkle, version 12


No comments yet.