更改现有SVN工作副本的深度,而无需重新下载 [英] Change depth in existing SVN working copy without redownloading

查看:321
本文介绍了更改现有SVN工作副本的深度,而无需重新下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有整个SVN信息库的工作副本,但是由于磁盘空间问题,我想将其更改为稀疏的工作副本.

I have a working copy of an entire SVN repository, but I want to change it into a sparse working copy because of disk space issues.

一种执行此操作的方法是:

One way to do this would be:

svn up --set-depth immediates projects
svn up --set-depth infinity projects/project1
svn up --set-depth infinity projects/project2

但是,这将首先删除project1project2,然后重新下载它们.这确实很不方便,因为它们很大,并且服务器的上传速度很低.我尝试了这一点(作为实验,与另一个较小的回购部分一起进行了):

However, that would first delete project1 and project2, then redownload them. This is really inconvenient, because they're very large and the server's upload speed is very low. I tried this (with another, smaller, part of the repo, as an experiment):

svn up --set-depth infinity projects/project1
svn up --set-depth infinity projects/project2
svn up --set-depth immediates projects

但是最后一条命令只是撤消前2条.

But then the last command just undoes the first 2.

如何设置工作副本的深度而又不立即对其进行更新/更改,这样我就有机会首先正确配置子目录?

How can I set the depth of a working copy without it immediately updating/changing it, so I can have the chance to correctly configure subdirectories first?

或者还有另一种方式来实现我想要的功能,例如首先将project1project2复制到安全位置?

Or is there another way to accomplish what I want, e.g. by copying project1 and project2 to a safe location first?

推荐答案

糟糕,我遇到了这个问题,TortoiseSVN支持从稀疏检出中添加和删除项目的解决方案. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug -checkout.html

Woo hoo, I had this problem, and TortoiseSVN has supported solutions for both add and delete an item from the sparse checkout. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-checkout.html

1.要添加: 在Windows资源管理器中,右键单击已签出的文件夹,然后使用TortoiseSVN? Repo-Browser调出存储库浏览器.找到您要添加到工作副本中的子文件夹,然后使用上下文菜单?正在将项目更新为修订版....

1.To add: In windows explorer, Right click on the checked out folder, then use TortoiseSVN ? Repo-Browser to bring up the repository browser. Find the sub-folder you would like to add to your working copy, then use Context Menu ? Update item to revision....

2.删除; 在您的根目录中,右键单击/Repo-Browser/将项目更新到修订;然后选择排除".

2.To delete; From your root, right-click / Repo-Browser / Update item to revision; then select 'Exclude'.

这篇关于更改现有SVN工作副本的深度,而无需重新下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆