Discussion:
List of tag - Module
tiroseno tiroseno
2009-03-10 11:47:46 UTC
Permalink
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
Alan D. Salewski
2009-03-10 15:09:37 UTC
Permalink
Post by tiroseno tiroseno
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
--
a l a n d. s a l e w s k i ***@worldnet.att.net
--------------------------------------------------------------------
[excessively dumb haiku deleted]
--------------------------------------------------------------------
Generated from Haiku-O-Matic: www.smalltime.com/haiku.html
Todd Denniston
2009-03-10 16:31:42 UTC
Permalink
Post by Alan D. Salewski
Post by tiroseno tiroseno
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
Alan D. Salewski
2009-03-10 17:25:57 UTC
Permalink
[Splicing out-of-band message into thread...]

Hi Tiroseno,

You replied directly to me; please keep the discussion on the mailing
list. That allows for participation from all interested parties, many of
whom may be in a better position to help you than myself. It also
captures the discussion in the list archives, which benefits people
searching for answers before asking here.
Post by Alan D. Salewski
Post by tiroseno tiroseno
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
--
Hi, thanks
But, I need the list of tags like NetBeans shows it. In NetBeans when you
select a module in CVS, you can select the tag for this module from a list.
Do you know the NetBeans?
I should this behavoiur for several modules.
Regards
Tiroseno
I am not familiar with NetBeans, but I would expect that it is
performing a variation on one of the two approaches indicated in my
previous message.

I'd be happy to learn about a different approach, though, if someone
here knows better.

-Al
--
a l a n d. s a l e w s k i ***@worldnet.att.net
--------------------------------------------------------------------
Grave robbers ahoy!
They brought lots of hefty bags.
Planning a long night?
--------------------------------------------------------------------
Generated from Haiku-O-Matic: www.smalltime.com/haiku.html
tiroseno tiroseno
2009-03-11 12:15:58 UTC
Permalink
Thanks, I'll do it, it's the frist time to use mailing list.

Finally, I've found a file that is in every modules, like ChangeLog.
Then I'll extract the output of "cvs status -v ChangeLog" in a file and I'll
create a java class that obtain the list of tag.

Regards

Tiroseno
Post by Alan D. Salewski
[Splicing out-of-band message into thread...]
Hi Tiroseno,
You replied directly to me; please keep the discussion on the mailing
list. That allows for participation from all interested parties, many of
whom may be in a better position to help you than myself. It also
captures the discussion in the list archives, which benefits people
searching for answers before asking here.
Post by Alan D. Salewski
Post by tiroseno tiroseno
Hi,
I'm trying to get a list of tags of one module, but I don't find any
command
Post by Alan D. Salewski
Post by tiroseno tiroseno
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
--
Hi, thanks
But, I need the list of tags like NetBeans shows it. In NetBeans when you
select a module in CVS, you can select the tag for this module from a
list.
Do you know the NetBeans?
I should this behavoiur for several modules.
Regards
Tiroseno
I am not familiar with NetBeans, but I would expect that it is
performing a variation on one of the two approaches indicated in my
previous message.
I'd be happy to learn about a different approach, though, if someone
here knows better.
-Al
--
--------------------------------------------------------------------
Grave robbers ahoy!
They brought lots of hefty bags.
Planning a long night?
--------------------------------------------------------------------
Generated from Haiku-O-Matic: www.smalltime.com/haiku.html
Loading...