info-cvs
[Top][All Lists]
Advanced

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

Re: viewing all tags


From: Colm Murphy
Subject: Re: viewing all tags
Date: Fri, 21 Dec 2001 14:13:26 +0000
User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-GB; rv:0.9.4) Gecko/20011019 Netscape6/6.2

Hi David,

This script was posted a while back.

------------------------------------------------------
-- show_tags.pl
------------------------------------------------------
#!/usr/local/bin/perl -w

my $Flag = 0;
while( <> )
{
   $Flag = 1 and next if( /symbolic names:/ );
   if( $Flag )
   {
      if( ! /^\s+(\S+):/ )
      {
         $Flag = 0;
         next;
      }
     $Tag{$1} = 1;
   }
}
map{ print "$_\n"; } (sort keys %Tag);
------------------------------------------------------

"cvs rlog <dir> | show_tags.pl" will return all the tags used in the directory <dir>. If <dir> is a list of all your top level directories then you will get all tags used in the repository.

Colm A

David Hugh-Jones wrote:

hi all

Is there a simple way to view all the tags that have been created in a repository?

David







reply via email to

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