Our source tree is quite big (2G), and we provide svn:// access for RO and https:// access for RW using a SSO solution for authorization. Our scripts allow our users to perform a sparse checkout, and when they need to actually checkout something big, basically this is what we used to do.
svn up --set-depth empty WC/bigSubDir svn sw --relocate RW_URL RO_URL WC/bigSubDir svn up --set-depth infinity WC/bigSubDir svn sw --relocate RO_URL RW_URL WC/bigSubDir This would speed up the big update (infinity) by about 60% in our case. The reason why we did it this way (relocating the subdir) is because in case the user had another big subdirectory checked out with infinity, the first svn switch would take so long that it was no longer worth it. I've been testing this with 1.7-rc4 and this is no longer the case, meaning the "svn relocate URL" seems to take constant time, independent of the size and amount of WC/subdir(s) you have. I guess that is expected with WC-NG since it only has to change metadata in one place. More and more this seems to be a non-issue for on my case. Regards Christian Asmussen -----Original Message----- From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: 10 October 2011 15:32 To: Asmussen, Christian; users@subversion.apache.org Subject: RE: svn relocate on 1.7.0-rc4 doesn't work on subdirectories anymore? > Hi, > On subversion 1.6 I am able to: > svn sw -relocate FROM_URL TO_URL WC/subdir > > When I try this on 1.7.0-rc4 I get an error E155019: > svn: E155019: Cannot relocate 'WC/subdir' as it is not the root > of a working copy; try relocating 'WC' instead. > > I noticed that the "-relocate" option has been deprecated by "svn relocate" > and from the documentation it changes the url of "the working copy". > > Is there a plan to support relocating subdirectories or is this feature "gone"? > > Thanks for any help! > Christian Asmussen > I'm curious what's the use case here. Relocate is used when you move a repository to a new location (URL). So, you moved your server but don't want to point the full working directory to the new server location? BOb Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases.