有一个遗留的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>更多推荐
发布评论