开发者

CVS Ignore Directories

How do you set to ignore folders and all its subdirectories in CVS?

It开发者_如何学C's getting pretty annoying when it commits every file in my \bin, \obj or \TestResult folders.

Tried *\TestResult in the ignore list - to no avail.


you can create a .cvsignore file in your directories. See here for details

In your case the .cvsignore of your project root would look like

bin
obj
TestResult


I also had to add .cvsignore into the .cvsignore file, because

cvs up returned ? .cvsignore

Note that I am using 1.12.13-MirDebian-9


I have tried the way above and it works, except a detail: if you want to ignore a folder, and you have committed this folder to CVS server, you cannot delete this folder and commit to delete it in CVS repository. Eclipse will ignore your delete. You have to:

  • Move all files in this folder to another location,
  • In Eclipse, synchronize with CVS,
  • mark as merged to all files removed,
  • they will appear with - before them. commit to delete them in CVS server.
  • create .cvsignore file in this folder, with New - File, type .cvsignore as file name, and edit it to match patrons of file names of those you want to ignore.
  • synchronize again, to commit this .cvsignore.
  • Move files back to this folder. You are done.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜