如何找出哪些CVS标签覆盖哪些文件和路径?(How to find out which CVS tags cover which files and paths?)

编程入门 行业动态 更新时间:2024-10-22 15:32:59
如何找出哪些CVS标签覆盖哪些文件和路径?(How to find out which CVS tags cover which files and paths?)

有一个遗留的CVS存储库,其中包含大量的目录,子目录和路径。 还有大量的分支和标签不一定涵盖所有路径和文件 - 通常是一个子集。 我怎样才能找出哪个分支/标签涵盖了哪些文件和路径?

CVS日志已经提供了每个文件的标签列表。 该任务需要我将其转换为每个标记的文件。 在当前的WinCVS(CVSNT)实现中我找不到这样的功能。 鉴于充足的空周期,我可以编写一个Perl脚本来完成这个任务,算法并不复杂,但需要完成。

我想可能会有一些人需要这些信息并解决了这个问题。 因此,我认为应该是一个现成的(开源/免费)工具。

There is a legacy CVS repository, which contains a large number of directories, sub-directories, and paths. There is also a large number of branches and tags that do not necessarilly cover all paths & files - usually a subset. How can I find out, which branch / tag covers, which files and paths?

CVS log already provides the list of tags per file. The task requires me to transpose this into files per tag. I could not find such functionality in current WinCVS (CVSNT) implementation. Given ample empty cycles I can write a Perl script that would do that, the algorithm is not complex, but it needs to be done.

I would imagine there are some people who needed such information and solved this problem. Thus, I think should be a readily available (open source / free) tool for this.

最满意答案

要确定哪些标签适用于特定文件,请使用:

cvs log <filename>

这将输出文件的所有版本以及应用于该版本的标签。

要确定哪些文件包含在单个标签中,我唯一能想到的就是使用标签签出并查看返回的文件。 该命令是以下任何一种:

cvs update -r <tagname> cvs co <modulename> -r <tagname> cvs export <modulename> -r <tagname>

To determine what tags apply to a particular file use:

cvs log <filename>

This will output all the versions of the file and what tags have been applied to the version.

To determine what files are included in a single tag, the only thing I can think of is to check out using the tag and see what files come back. The command for that is any of:

cvs update -r <tagname> cvs co <modulename> -r <tagname> cvs export <modulename> -r <tagname>

更多推荐

本文发布于:2023-04-29 07:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335930.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   标签   文件   CVS   find

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!