Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change depth in existing SVN working copy without redownloading

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 

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 

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?

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

like image 842
Bart van Heukelom Avatar asked Aug 28 '11 19:08

Bart van Heukelom


People also ask

Which is the svn command to see the list of changes made in a working copy before committing to the repository?

Use svn status command to get the status of the file in the working copy. It displays whether the working copy is modified, or its been added/deleted, or file is not under revision control, etc. 'M' represents that the item has been modified.

How do I make a working copy in TortoiseSVN?

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....


1 Answers

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.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.To delete; From your root, right-click / Repo-Browser / Update item to revision; then select 'Exclude'.

like image 67
AnneTheAgile Avatar answered Sep 28 '22 21:09

AnneTheAgile