Subversion:提交时忽略存储库中的目录
我在这个存储库中拥有所有的 boost 头文件,当我签入时,需要花费很长时间来扫描所有那些永远不会改变的文件。
因为我希望签出该项目的用户能够在不安装 boost 的情况下进行编译,所以我陷入了困境。
我想检查所有内容,然后忽略目录上的更新(永远不会有任何更新)。
Tortoise svn 有一个忽略提交更改列表,但我无法找到将整个目录添加到此列表的方法,而且我不喜欢“修改”所有 boost 文件的想法,这样我就可以将它们添加到此更改列表中。
有一个简单的解决方案吗?
I have all the boost header files in this repository and when I do a check in it takes a really long time to scan all those files that will never change.
Because I want users that checkout the project to be able to compile without installing boost I am in a pickle.
I want to checkout everything, and then ignore updates (there will never be any) on a directory.
Tortoise svn has a ignore-on-commit change list, but I cannot find anyway to add an entire directory to this list, and I do not fancy the idea of 'modifying' all the boost files so I can add them to this change list.
Is there a simple solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
也许你可以使用 Subversion "externals" 来存储 Boost 头文件在另一个 Subversion 存储库中。这样,Subversion 在检查项目更新时不需要扫描该目录,但检查项目的用户将自动获取包括 Boost 依赖项在内的整个内容。
Perhaps you could use Subversion "externals" to store the Boost header files in another Subversion repository. That way, Subversion won't need to scan that directory when checking for updates to your project, but users who check out your project will automatically get the whole thing including the Boost dependency.
除了格雷格的回答之外,您还可以看看更新到特定修订版的可能性。因此,您可以确保客户不会无意中获得“Boost”项目的任何更新。
兄弟,马塞尔
Additional to Greg's answer, you may also have a look on the possibility to update to a specific revision. Thus, you could make sure, a client would not get unintentionally any updates on the "Boost" project.
br, Marcel
我来到这个线程寻找一种方法来对某些文件进行“原子”提交,而不是在提交时忽略某些文件,而是采取了另一种方式,只提交了我想要的文件:
也许,它会对某人有所帮助。
I came to this thread looking for a way to make an "atomic" commit of just some files and instead of ignoring some files on commit I went the other way and only commited the files I wanted:
Maybe, it will help someone.