RE: Branch Labels and Version Lables

"Risman, Mark" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <FCF701D208A8FF4F9E856ED7D6CD8D8C06D50092@MLBAM-EXCH01.MLBAM.mlb.org>
Juergen,

If you run "cvs tag -d" on your files, and don't use the "-B" option it should remove the non-branch tags and leave the branch tags.

I tried this in version 1.11.17. You can verify that this behavior applies to your version by running "cvs -H tag" and reading what it says for the "-B" option.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alan D. Salewski
Sent: Monday, July 27, 2009 1:18 PM
To: [email protected]
Subject: Re: Branch Labels and Version Lables

On Mon, Jul 27, 2009 at 04:34:14PM +0200, Knuplesch, Juergen spake thus:
> Hello,
> 
> I have a little bit messed up project: There are files that bear a 
> Branchlabel x and other files that bear
> Versionlabel x
> 
> The sam Lablename for two different kinds of Labels.
> 
> I want to delete all Labels tagged with the version Label.
> 
> How can I find out the filenames?
> 
> Greetings Juergen

Hi Jürgen,

Here's a really slow way:

    $ find . \( -type d -a -name 'CVS' -prune \) -o \( -type f -print \) |
    >   while read fpath; do
    >       if cvs status -v "$fpath" | grep -q Versionlabel_x; then
    >           printf '%s\n' "$fpath";
    >       fi;
    >   done

That invokes a separate 'cvs status' command for each file in the
working directory, and assumes that all non-CVS files found are project
files.

Anyone have something better?

HTH,
-Al

-- 
a l a n   d.   s a l e w s k i             [email protected]
--------------------------------------------------------------------
                   [excessively lame haiku deleted]
--------------------------------------------------------------------
Generated from Haiku-O-Matic:           www.smalltime.com/haiku.html








**********************************************************

MLB.com: Where Baseball is Always On
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.