Subversion 忽略列表

发布于 2024-11-03 06:20:06 字数 240 浏览 1 评论 0原文

我有关于在 svn 忽略列表中添加文件夹的非常基本的问题。我有一个 Maven 项目,它创建了目标文件夹。现在其他开发人员已经在 svn 中签入了这个目标文件夹。我想要的是当我在 Eclipse 中查看团队同步视图时,我不希望 Eclipse 在列表中显示目标文件夹。当我尝试右键单击此文件夹并尝试将其添加到忽略列表中时,它被禁用。有人可以解释一下如何将该文件夹从 svn 列表中取出吗,因为该目标文件夹将由 maven 生成,并且不需要成为存储库中源代码的一部分?

I have very basic question about adding a folder in svn ignore list. I have one maven project and it created target folder. Now other developer had checked in this target folder in svn. What I want is when I view the Team synchronization view in eclipse, I dont want eclipse to show target folder in the list. When I try to right click this folder and try to add it in ignore list then it is disabled. Can someone please explain me how can take the folder out of svn list as this target folder will be generated by maven and it does not need to be part of source code in repo?

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

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

发布评论

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

评论(6

○愚か者の日 2024-11-10 06:20:06

一般来说,Subversion 仅对尚未在存储库中的文件(和目录)使用忽略列表。对于版本化文件,忽略列表将被忽略。

因此,看起来唯一简单的方法就是再次从存储库中删除该文件夹。当然,这应该首先在团队中讨论。

(可能有一些复杂的方法,但我不是颠覆巫师。)

In general, Subversion uses the ignore list only for files (and directories) which are not yet in the repository. For versioned files, the ignore list is ignored.

So it looks like your only easy way would be to delete this folder from the repository again. Of course, this should be first discussed in the team.

(There might be some complicated way, but I'm not subversion wizard.)

聚集的泪 2024-11-10 06:20:06

忽略模式仅适用于非-版本化项目。

要忽略您的文件夹,您必须先将其删除,然后添加具有所需模式的属性 svn:ignore。

命令行:

svn rm MAVEN_DIRECTORY
svn propedit svn:ignore PARENT_DIRECTORY_OF_MAVEN_DIRECTORY
// add the pattern of your directory in the list, and save
svn commit    

请注意,一旦提交,我相信它将从每个开发人员工作副本中删除此目录,除非有修改(之前测试以确保)

Ignore pattern are only applied on non-versionned item.

To ignore to your folder, you must delete it first, and add a property svn:ignore with the desired pattern.

Command line:

svn rm MAVEN_DIRECTORY
svn propedit svn:ignore PARENT_DIRECTORY_OF_MAVEN_DIRECTORY
// add the pattern of your directory in the list, and save
svn commit    

Be advised that once commited, I believe it will delete this directory from every developper working copy, unless there are modification (Test it before to be sure)

祁梦 2024-11-10 06:20:06

在尝试添加到添加到 svn:ignore 之前尝试更新到 HEAD

Try Update to HEAD before trying to add to Add to svn:ignore.

街角迷惘 2024-11-10 06:20:06

我相信忽略需要提交到存储库才能对所有用户的工作副本生效。这能回答部分问题吗?我对 Eclipse 中的 SVN 不太熟悉。

I believe ignores need to be committed to the repo to take effect on all users' working copies. Does that answer part of the question? I'm not too familiar with SVN in Eclipse.

奈何桥上唱咆哮 2024-11-10 06:20:06

我相信你可以从 SVN 中删除任何文件夹。然后进行提交应该可以解决问题。

I believe you can delete any folder from SVN. and then doing a commit should do the trick.

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