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: Alan D. Salewski
Subject: Re: Branch Labels and Version Lables
Date: Mon, 27 Jul 2009 13:18:24 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

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





reply via email to

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