找到CVS的最简单方法是不添加文件和添加但未提交的文件

时间:2015-05-29 03:58:32

标签: cvs

我正在为我的项目使用cvs。我之前已经添加并提交了一些文件。之后我修改,添加,承诺。 但是现在我不确定是否添加了项目中存在的每个文件,以及每个添加的文件是否已提交。 那么如何找到哪些文件

  • 根本没有添加(但存在于本地仓库中)

  • 已添加但未提交

编辑:有很多文件。所以cvs log,cvs log filename就不那么容易了

1 个答案:

答案 0 :(得分:0)

本回答中的信息来自:

的输出
cvs -H update

解决方案是:

cvs -nq update

尚未添加的本地工作空间中存在的文件在输出中显示为:

? file

CVS的说明帮助解释了:

  file  is  in  your working directory, but does not correspond to anyâ
  thing in the source repository, and is not in the list of  files  for
  cvs  to  ignore  (see  the description of the -I option, and see node
  'cvsignore' in the CVS manual).

添加但未提交的文件会在输出中显示如下:

A file

CVS帮助描述继续说:

  The file has been added to your private copy of the sources, and will
  be  added  to  the source repository when you run commit on the file.
  This is a reminder to you that the file needs to be committed.

例外情况适用于尚未添加的文件:

    本地工作空间中的
  • .cvsignore 文件会阻止同一目录中尚未添加到cvs控件的文件的出现。
  • CVSROOT / cvsignore存储库配置文件执行相同的操作,但它会影响整个工作区(所有目录)。
  • 至少在某些平台上,某些二进制文件似乎存在隐式忽略,例如那些匹配“* .exe”的文件。