如何在 subclipse 中检出树的一部分?
我正在使用 Eclipse 的 SVN 插件(subclipse),并且想要将现有存储库签出(或导入)到 eClipse 工作区中。但是,我只想检查文件树的某些部分。我有办法做到这一点吗?
I am using SVN plugin for eclipse (subclipse), and want to do a Checkout (or import) of an existing repository into eClipse workspace. However, I only want to checkout certain portision of the file tree. Is there a way I can do that ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Subclipse 本身可能会受到一些限制(甚至可能不可能)。最好的选择是使用 TortoiseSVN 或命令行客户端并在顶部进行稀疏结帐 包含您想要签出的子结构的级别目录
一旦您对最顶层的文件夹进行了稀疏签出,您就可以执行 svn update 来检索您想要的任何子文件夹,根据需要控制其深度。
您想要避免 Subversion 中的某些路径越复杂,您需要对存储库中实际想要的每个文件夹进行的手动更新就越多。
签出文件后,您可以将该目录导入到 Eclipse 中,从那时起它应该可以正常运行。
You may be somewhat limited (and it may not even be possible) by using Subclipse itself. You're best bet is to use TortoiseSVN or command line client and do a sparse checkout on the top level directory that contains the child structure(s) you want to check out
Once you have a sparse checkout of the top most folder, you can do svn update to retrieve any child folders you want, controlling their depth as you see fit.
The more complicated you get with wanting to avoid certain paths in subversion, the more manual updates you will have to do on every folder you actually want from the repository.
Once you get done checking out the files, you can import the directory into Eclipse and it should function normally from that point on.