List all tags within a module in CVS in CLI

Is it possible to get a list of all generated tags for a given module in CVS?

I can use

cvs status -v FILE

but it shows too much information that I just don't need. I can use some gui utilities that show me only the tag names (Eclipse is one of them), how do they do it? You need to do some "hacks" or are just parameters I'm unaware of?

I would like to know if there's a command that would show me just something like this on terminal:

TAG1
TAG2
TAG3
TAG4

Upvotes: 9

Views: 6634

Answers (2)

Dennis Bernaerts
Dennis Bernaerts

Reputation: 81

In bash

cvs -q status -R -v | cut -d' ' -f1 | sort -u

or

cvs -q status -v FILE | cut -d' ' -f1 | sort -u

Upvotes: 7

Dan Bolser
Dan Bolser

Reputation: 996

There is a script you can copy here:

http://docs.codehaus.org/display/ninja/List+CVS+Tags

Seems a shame this isn't 'core' functionality.

Upvotes: 1

Related Questions