I support the build system in my company, which currently uses CVS. This build system is used for several projects and multiple CVS repositories.
Whenever we have a release phase, we create a tag. In CVS, this is easy:
$ cvs tag TAG_NAME
This command works regardless of the CVS module or repository if it is executed in the CVS working directory.
To do the same in subversion, although it seems like I first need to parse the output of svn info to get the root of the repository. Then I can create the tag with:
svn cp . $REPO_ROOT/tags/TAG_NAME -m"Created tag TAG_NAME"
This, of course, assumes that the svn repository has the recommended directory structure "trunk, tags, branches". Therefore, to be safe, I probably have to check this first.
It seems like a lot of work to match the version number with a symbolic name. Is there a better way?
svn
Jason day
source share