Laird Nelson wrote:
> Can someone give me a pointer on when to use cvs tag vs. when to use cvs
> rtag? I know, for example, that cvs tag doesn't show up in the history
> file, and that cvs rtag requires you? I think? to feed it the revision
> number of whatever you're tagging, thus preventing you from saying "cvs
> rtag the tree the way it is now". What common situations is each
> command used in?
>
[smc] One big difference between "cvs tag" and "cvs rtag" is that
"cvs tag" requires you to do a "cvs checkout" first, while "cvs
rtag"
does not (which is why it requires you to feed it the revision
number
(or another tag.)
I use "cvs rtag" to tag builds prior to checking them out, because I
have to check them out on multiple architectures...
As for not being able to say "cvs rtag the tree the way it is
now"...
Well if, by "the tree", you mean your working directory, yes this
is true.
If you mean by "the tree" the current state of a branch...
cvs rtag -r branch_tag my_new_tag everythign
Or for the trunk...
cvs rtag -r HEAD my_new_tag everything
hmm. "HEAD" scares me a bit, I'm not sure how well it really works.
I don't use the trunk much, so I don't use the HEAD pseudo-tag much.
I do know that "cvs diff" treats HEAD differently than everything
else...
Hope it helps.
-- steve