如何找出哪些 CVS 标签覆盖了哪些文件和路径?

发布于 2024-07-05 18:23:20 字数 299 浏览 6 评论 0原文

有一个遗留的 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

黒涩兲箜 2024-07-12 18:23:20

要列出文件上的标签,还可以执行以下操作:

cvs status -v <file>

To list tags on a file one can also do:

cvs status -v <file>
情绪 2024-07-12 18:23:20

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

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>
醉态萌生 2024-07-12 18:23:20

上面引用的方法对我不起作用

cvs -q rdiff -s -D 2000-01-01 -r yourTagName

但是经过大量的混乱后我意识到

cvs -q rdiff -s -D 2000-01- 01 -r yourTagName ModuleName

有效

the method quoted above didn't work for me

cvs -q rdiff -s -D 2000-01-01 -r yourTagName

however after a lot of messing around I've realised that

cvs -q rdiff -s -D 2000-01-01 -r yourTagName ModuleName

works

筱果果 2024-07-12 18:23:20

您不必进行实际结账。 您可以使用 -n 选项仅模拟此操作:

cvs -n co -rTagName ModuleName

这将为您提供模块 ModuleName 中标记为 TagName 的所有文件的名称。

You don't have to do an actual checkout. You can use the -n option to only simulate this:

cvs -n co -rTagName ModuleName

This will give you the names of all the files tagged TagName in module ModuleName.

野却迷人 2024-07-12 18:23:20

以下命令给出了该标签“yourTagName”中的文件列表。 文件全部标记为新文件,修订信息位于“yourTagName”中。

此命令在 2000-01-01 和您的标签之间进行比较,请随意使用其他更早的日期。

cvs -q rdiff -s -D 2000-01-01 -r yourTagName

The following command gives a list of files that are in that tag "yourTagName". The files are all marked as new, the revision info in "yourTagName".

This command does a diff between 2000-01-01 and your tag, feel free to use another date that is earlier.

cvs -q rdiff -s -D 2000-01-01 -r yourTagName
爱殇璃 2024-07-12 18:23:20

我不知道有什么工具可以帮助您,但是如果您正在编写自己的工具,我可以帮您解决一个难题:CVS 中的目录不能为 tagget。 只有其中的文件才有标签(这决定了当您签出特定标签上的目录时签出的内容)。

I don't know of any tool that can help you, but if you are writing your own, I can save you from one headace: Directories in CVS cannot be tagget. Only the files within them have tags (and that is what determines what is checked out when you check out a directory on a specific tag).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文