[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I use same tag name on different branches?

From: Kaz Kylheku
Subject: Re: Can I use same tag name on different branches?
Date: Mon, 20 Jan 2003 17:01:29 -0800 (PST)

On Mon, 20 Jan 2003, Chen, Susie wrote:

> Date: Mon, 20 Jan 2003 16:31:48 -0800
> From: "Chen, Susie" <address@hidden>
> To: address@hidden
> Subject: Can I use same tag name on different branches?
> I have two branches (b1 and b2) under same module.   I tagged the b1 with A,
> and later tagged b2 with A as well.   If I check out by A later, what set of
> files will be retrieved?

Possibly a mixture of the two, depending on how you tagged. Did you use
tag or rtag? Did you use the -F option or not?

Without -F, tag and rtag do not edit existing tags. But they will still
apply the tag to files that don't have it.

The tag command will only operate on those files that are visible in
your working copy. If you are currently on branch b1, and use ``cvs tag
-r b2 tagname'', then only those files which exist in both b1 and b2
(the intersection set, roughly) will be tagged. You should almost never
use tag with a -r option, but use rtag instead.

So, given these possibilities, you can see how the tag A might end up
being spread between two branches, so that it's on the b1 branch of
some files, and the b2 branch of others.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]