Re: List of tag - Module

Todd Denniston <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
Alan D. Salewski wrote, On 03/10/2009 11:09 AM:
> On Tue, Mar 10, 2009 at 12:47:46PM +0100, tiroseno tiroseno spake thus:
>> Hi,
>>
>> I'm trying to get a list of tags of one module, but I don't find any command
>> to get it.
>>
>> Is it posible?
>>
>> Thanks
> 
> The tags are associated with files, not to a module.
> 
> Since it is possible to add a tag to a single file within a module, to
> generate a complete set you would have to examine all files (including
> those that have been removed) for all tags.
> 
> In practice, however, all files for a module get tagged together, so
> your best bet is to just look for the tags on a file that is likely to
> have been part of the project since the beginning. Often times there is
> a 'README' or 'ChangeLog' file at the top level of a project directory
> that is suitable for this.
> 
>     $ cvs status -v ChangeLog
> 
> HTH,
> -Al
> 


cvs2cl -t Module
will give you a file that contains all the tag names, I _think_ even including 
cvs removed files.

cvs2cl -t --xml -f ChangeLog.xml Module
grep "<tag>" ChangeLog.xml

grep "<tag>" ChangeLog.xml |sort |uniq
is useful for knowing all the tags, but it is not in an order of application.

http://www.red-bean.com/cvs2cl/

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
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.