删除后Eclipse中的Cvsignore

发布于 2024-08-13 16:54:52 字数 314 浏览 2 评论 0原文

我无意中向 Eclipse 项目中的 CVS 添加了一些动态构建目录和文件。现在,删除这些文件后,提交更改并运行构建文件将显示为新文件(问号),但目录显示为已提交。现在我知道处理这种情况的困难方法,需要我从存储库中手动删除不需要的目录,但我真正想做的就是将顶部不需要的目录添加到 .cvsignore 所以任何提交时将忽略那里的文件。然而,“团队->添加到.cvsignore”菜单选项此时呈灰色,如果我手动添加.cvsignore,它将被忽略(因为缺乏更好的词)。

可以在不从历史记录中清除目录的情况下完成此操作吗?如果是的话——怎么办?

I inadvertently added some dynamically build directories and files to CVS in my Eclipse project. Now after deleting these files, committing changes and running the build files are shown as new (question mark) but directories are shown as committed. Now I know the hard way to deal with this situation that requires me to manually delete unneeded directories from the repo but all I'm really trying to do is to add the top unneeded dir to .cvsignore so any files there will be ignored on commit. However Team->Add to .cvsignore menu option is at this point grayed out and if I add .cvsignore manually it is (for lack of a better word) ignored.

Can this be done without cleaning directories out from the history? And if yes - how?

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

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

发布评论

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

评论(3

自由范儿 2024-08-20 16:54:52

既然没有人给出答案,我就来回答这个问题。或者更确切地说,我会告诉你我最终是如何处理这个问题的。
所以我认为它没有其他解决方案只是因为 CVS 目录是“永久的”。我必须打开 CVSROOT/history 文件并手动删除与我不再需要的目录相对应的所有行。之后,我还删除了我想要删除的目录中的所有 .CVS 文件夹。刷新并添加到.cvsignore。享受!

Since no one came forward with the answer I'm going to answer this. Or rather I will tell you how I ended up dealing with this problem.
So I think it doesn't have other solution just because CVS directories are "permanent". I had to open CVSROOT/history file and manually delete all lines corresponding to the directories that I no longer want. After that I also deleted all .CVS folders inside the directories I wanted to get rid of. Refresh and add to .cvsignore. Enjoy!

暗恋未遂 2024-08-20 16:54:52

即使问题已经解决,我还是想添加刚刚对我有用的内容。
我只是删除了本地文件,然后提交到 cvs,此后,“添加到 .cvsignore”选项变得可用。因此,就我而言,无需访问 cvs 服务器,cvs 似乎只是避免添加已经在其控制范围内的文件而被忽略。

因此,删除,提交,创建新文件(本地,同名,但不提交),然后右键(eclipse)->团队->添加到 .cvsignore,它应该工作得很好。

Even though the problem is solved I would like to add what just worked out for me.
I just deleted the local files and then commited to cvs, after this, the option "add to .cvsignore" became available. So, in my case there was no need to access the cvs server, cvs just seem to avoid adding files already is in his control to be ignored.

So, delete, commit, create the new file (locally, same name, but don´t commit) and then right button (eclipse) -> Team -> add to .cvsignore, it should work great.
.

另类 2024-08-20 16:54:52

我知道这是一个老问题,但由于道格拉斯的技巧对我不起作用(我无法提交目录的删除),我和一位同事必须找到另一种解决方法。

这些步骤解决了我们的问题:

  1. 在操作系统的文件管理器中,转到包含有问题的目录的目录

  2. 查找文件夹< code>CVS,然后在其中打开 Entries 文件

  3. 查找包含目录名称的行,格式为

    D/目录名////
    
  4. 删除该行,保存并刷新 Eclipse 中的目录。

如果该文件夹是在 .cvsignore 中定义的,那么它现在应该远离同步视图。

I know this is an old question but since Douglas's trick didn't work for me (I couldn't commit the deletion of the directory), I and a colleague had to find another workaround.

These steps solved our problem:

  1. In your OS's file manager, go to the directory that includes the troublesome directory

  2. Find the folder CVS, and in it, open the Entries file

  3. Find the row that includes the name of the directory, in the form

    D/directoryname////
    
  4. Delete that row, save, and refresh the directory in Eclipse.

If the folder is defined in .cvsignore, it should now stay away from the synchronize view.

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