Subversion svn:更新时忽略
我在 Visual Studios 2010 和 Ankhsvn 中工作。
我需要排除一些文件被提交(这是我通过更改日志中的忽略提交完成的)。
更新时如何排除文件被更改?
我尝试添加 svn:ignore 属性,但不断抛出错误。也许我用错了......完全排除文件不应该这么难。
I'm working in Visual Studios 2010 and Ankhsvn.
I need to exclude a few of my files from being Committed (which I did through ignore-on-commit in the Change log.)
How do I exclude the files from being changed when I update?
I've tried adding the svn:ignore property, but I keep getting errors thrown. Maybe I'm using it wrong... It shouldn't be this hard to completely exclude files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
svn:ignore
是目录上的一个属性,您设置它来指定给定资源不应该处于版本控制中 - 这听起来不像您想要的。如果文件已处于版本控制之下,SVN 将始终尝试处理它。您想要的效果(将svn
操作限制到给定的文件子集)可以使用--changelist
选项来实现。您可以使用 svn changelist 创建文件列表,然后使用子选项在该列表中添加和删除文件,然后您可以将该更改列表传递给 svn up 以限制哪些文件可以获取已处理。svn:ignore
is a property on a directory that you set to specify that the given resources shouldn't be in version control - which doesn't sound like what you want. If the file is already under version control, SVN will always try to process it. The effect you're after (restrictingsvn
operations to a given subset of files) can be achieved using the--changelist
option. You can usesvn changelist
to create lists of files, then suboptions to add and remove files from that list, then you can pass that changelist tosvn up
to limit which files get processed.