info-cvs
[Top][All Lists]
Advanced

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

RE: Branch Labels and Version Lables


From: Risman, Mark
Subject: RE: Branch Labels and Version Lables
Date: Tue, 28 Jul 2009 09:50:12 -0400

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: address@hidden [mailto:address@hidden On Behalf Of Alan D. Salewski
Sent: Monday, July 27, 2009 1:18 PM
To: address@hidden
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             address@hidden
--------------------------------------------------------------------
                   [excessively lame haiku deleted]
--------------------------------------------------------------------
Generated from Haiku-O-Matic:           www.smalltime.com/haiku.html








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

MLB.com: Where Baseball is Always On





reply via email to

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