Subversion 忽略列表
我有关于在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
一般来说,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.)
忽略模式仅适用于非-版本化项目。
要忽略您的文件夹,您必须先将其删除,然后添加具有所需模式的属性 svn:ignore。
命令行:
请注意,一旦提交,我相信它将从每个开发人员工作副本中删除此目录,除非有修改(之前测试以确保)
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:
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)
在尝试添加到添加到 svn:ignore 之前尝试更新到 HEAD。
Try Update to HEAD before trying to add to Add to svn:ignore.
我相信忽略需要提交到存储库才能对所有用户的工作副本生效。这能回答部分问题吗?我对 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.
我相信你可以从 SVN 中删除任何文件夹。然后进行提交应该可以解决问题。
I believe you can delete any folder from SVN. and then doing a commit should do the trick.
在 Eclipse 中将 bin 和 target 添加到全局 svn 忽略:
https://confluence.sakaiproject.org/display/BOOT/Add+bin+and+target+to+global+svn+ignore+in+Eclipse
Add bin and target to global svn ignore in Eclipse:
https://confluence.sakaiproject.org/display/BOOT/Add+bin+and+target+to+global+svn+ignore+in+Eclipse