CVS 忽略目录

发布于 2024-09-19 01:23:52 字数 181 浏览 3 评论 0原文

如何设置忽略 CVS 中的文件夹及其所有子目录?

当它提交我的 \bin\obj\TestResult 文件夹中的每个文件时,它变得非常烦人。

在忽略列表中尝试了 *\TestResult - 无济于事。

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

It'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.

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

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

发布评论

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

评论(3

作妖 2024-09-26 01:23:52

您可以在目录中创建一个 .cvsignore 文件。 查看此处了解详细信息

在您的情况下 .cvsignore你的项目根目录看起来像

bin
obj
TestResult

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
放飞的风筝 2024-09-26 01:23:52

我还必须将 .cvsignore 添加到 .cvsignore 文件中,因为

cvs up 返回 ? .cvsignore

请注意,我使用的是 1.12.13-MirDebian-9

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

桃扇骨 2024-09-26 01:23:52

我已经尝试了上面的方法并且它有效,除了一个细节:如果您想忽略某个文件夹,并且您已将此文件夹提交到 CVS 服务器,则无法删除此文件夹并提交在 CVS 存储库中删除它。 Eclipse 将忽略您的删除。您必须:

  • 将此文件夹中的所有文件移动到另一个位置,
  • 在 Eclipse 中,与 CVS 同步
  • 标记为已合并到所有文件文件被删除后,
  • 它们前面会出现 -commit 在 CVS 服务器中删除它们。
  • 在此文件夹中创建 .cvsignore 文件,使用 New - File,输入 .cvsignore 作为文件名,并对其进行编辑以匹配文件名的用户那些你想忽略的人。
  • 再次同步,以提交.cvsignore
  • 将文件移回此文件夹。你完成了。

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