List all tags within a module in CVS in CLI

萝らか妹 提交于 2019-12-10 02:38:14

问题


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

回答1:


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.




回答2:


In bash

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

or

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



来源:https://stackoverflow.com/questions/3143904/list-all-tags-within-a-module-in-cvs-in-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!