Discussion:
Branch Labels and Version Lables
Knuplesch, Juergen
2009-07-27 14:34:14 UTC
Permalink
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
--
Jürgen Knuplesch
Alan D. Salewski
2009-07-27 17:18:24 UTC
Permalink
On Mon, Jul 27, 2009 at 04:34:14PM +0200, Knuplesch, Juergen spake th=
Post by Knuplesch, Juergen
Hello,
=20
I have a little bit messed up project: There are files that bear a=
=20
Post by Knuplesch, Juergen
Branchlabel x and other files that bear
Versionlabel x
=20
The sam Lablename for two different kinds of Labels.
=20
I want to delete all Labels tagged with the version Label.
=20
How can I find out the filenames?
=20
Greetings Juergen
Hi J=FCrgen,

Here's a really slow way:

$ find . \( -type d -a -name 'CVS' -prune \) -o \( -type f -print=
\) |
Post by Knuplesch, Juergen
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 proje=
ct
files.

Anyone have something better?

HTH,
-Al

--=20
a l a n d. s a l e w s k i ***@worldnet.att.net
--------------------------------------------------------------------
[excessively lame haiku deleted]
--------------------------------------------------------------------
Generated from Haiku-O-Matic: www.smalltime.com/haiku.html
Risman, Mark
2009-07-28 13:50:12 UTC
Permalink
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: info-cvs-bounces+mark.risman=***@nongnu.org [mailto:info-cvs-bounces+mark.risman=***@nongnu.org] On Behalf Of Alan D. Salewski
Sent: Monday, July 27, 2009 1:18 PM
To: info-***@nongnu.org
Subject: Re: Branch Labels and Version Lables
Post by Knuplesch, Juergen
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 \) |
Post by Knuplesch, Juergen
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 ***@worldnet.att.net
--------------------------------------------------------------------
[excessively lame haiku deleted]
--------------------------------------------------------------------
Generated from Haiku-O-Matic: www.smalltime.com/haiku.html








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

MLB.com: Where Baseball is Always On
Loading...