Re: Branch Labels and Version Lables

"Alan D. Salewski" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
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
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.