Subclipse 想要提交一个包含 svn:ignore 文件的文件夹
我有一个带有子文件夹资源的项目。在这个文件夹中有一个我添加到 SVN:ignore 的文件。
与最新的存储库修订版相比,现在没有任何其他更改。但是在eclipse的synchronzite视图中,这个文件夹仍然被显示。它下面没有显示其他文件,因为没有任何变化。
- 为什么此文件夹显示在同步视图中?
- 是因为SVN元数据改变了吗?
- 我是否必须将元数据提交到存储库中?
- 有没有办法在不提交元数据的情况下将该文件夹从同步视图中移出?
我不想提交那些 SVN:ignore 元数据,因为它是特定于用户的。我不想忽略该文件夹的内容,因为有一些常规文件必须进行版本控制。
提前致谢。
I have a project with a subfolder Resources. In this folder there is a file I added to SVN:ignore.
Now there aren't any other changes compared with the latest respository revision. But in eclipse's synchronzite view, this folder is still beeing displayed. No other files are displayed under it, because nothing changed.
- Why is this folder beeing displayed in the synchronize view?
- Is it because SVN metadata changed?
- Do I have to commit the metadata into the repository?
- Is there a way, to get this folder out of the synchronize view, without commiting metadata?
I don't want to commit those SVN:ignore metadata, because its user specific. I don't want to ignore the folder's contents, because there are regular files which has to be version controlled.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,您修改了
Resources
文件夹的svn:ignore
属性。是的,
svn:ignore
属性存储在存储库中。它们在所有 SVN 用户之间共享。是的。您可以在 SVN 配置文件中使用
global-ignores
来代替svn:ignore
属性。从 运行时配置部分SVN书中的区域:Yes, you modified the
svn:ignore
property of theResources
folder.Yes,
svn:ignore
properties are stored in the repository. They are shared between all SVN users.Yes. You can use
global-ignores
in your SVN configuration file, instead of thesvn:ignore
property. From the section Runtime Configuration Area in the SVN book:当它应该起作用时,你必须提交 svn:ignore 。我想没有其他办法了。因为所有项目元数据都在版本控制之下!
You must commit svn:ignore when it should be work. There is no other way I think. Because all project metadata are under version control!
也许它正在尝试添加 .ignore 文件本身? (它可能创建了该文件来列出被忽略的文件。)还要检查是否有任何其他隐藏文件。
如果需要,您可以将整个文件夹添加到忽略列表
编辑
Svn 不会创建忽略文件列表,但可能它正在提交父文件夹或该文件夹内有一些隐藏文件
maybe it is trying to add the .ignore file itself? (It might have created that file to list ignored files.) Check for any other hidden files too.
if you want, you can add the whole folder to the ignore list
EDIT
Svn does not create a ignore file list, but maybe it is committing the parent folder or there is some hidden file inside that folder