列出在单个CVS提交中检入的所有文件 [英] List all the files checked-in in a single cvs commit

查看:78
本文介绍了列出在单个CVS提交中检入的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我们对所有错误的修复/补丁都涉及对多个文件的更改,我们将一次性提交所有这些文件。

Generally,our fixes/patches for any bugs involves changes in multiple files and we will commit all these files in a single shot.

在SVN中,每次提交(可能涉及多个文件),它将使整个存储库的修订版本号增加一。因此,我们可以轻松地链接一次提交中的所有多个文件。

In SVN, for each commit (may involve multiple files),it will increment revision number of whole repository by one. So, we can easily link all the multiple files that went in a single commit.

现在,在CVS中,相同案例的困难在于它将增加版本号。所有文件单独。假设某个提交包含以下文件:

Now the difficulty with the same case in CVS is that it will increment the revision numbers of all the files individually. Let's say if a commit involves the following files:

file1.c //为此提交分配的修订版本。.1.5.10.2

file2.c //作为此提交的一部分分配的修订。.1.41.10.1

file1.c //revision assigned as part of this commit..1.5.10.2
file2.c //revision assigned as part of this commit..1.41.10.1

为此提交给出的注释为首次错误修复。

and the comment given for this commit is "First Bug Fix".

现在,获取所有文件作为提交的一部分的唯一方法是在所有cvs日志中搜索注释 First Bug Fix,希望它只会返回上面提到了两个文件修订版本。

Now, the only way to get all files checked-in as part of this commit is by searching through all the cvs logs for comment "First Bug Fix" and hopefully it will return only the two file revisions mentioned above.

请分享您的观点,以了解CVS是否有更好的方法来跟踪一次提交而不是中继的所有文件

Please share your views on if there is any better way in CVS to keep track of all files checked-in in a single commit instead of relaying on comment given as part of commit.

推荐答案

我认为 CVSps 可能会满足您的需求。

I think CVSps might do what you are looking for.

CVSps是用于从CVS生成补丁集信息的程序在这种情况下,定义了补丁集对一组文件所做的一组更改,并且所有更改都同时提交(使用单个 cvs commit命令)。这些信息对于了解cvs项目的发展过程非常有价值。虽然cvs跟踪修订信息,但通常很难看到对存储库原子地提交了哪些更改。

"CVSps is a program for generating 'patchset' information from a CVS repository. A patchset in this case is defined as a set of changes made to a collection of files, and all committed at the same time (using a single 'cvs commit' command). This information is valuable to seeing the big picture of the evolution of a cvs project. While cvs tracks revision information, it is often difficult to see what changes were committed 'atomically' to the repository."

此cvsps依赖cvs客户端。请确保您拥有支持rlog命令(1.1.1)的cvs的正确版本

This cvsps relies on cvs client. Make sure you have proper version of cvs which supports rlog command (1.1.1)

这篇关于列出在单个CVS提交中检入的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆