Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using VisualSVN Server and TortoiseSVN as the client.

I have an existing Visual Studio project that was already checked into an existing repo. The guy who initially set it up did it a little funky so that he checked in all the files in the root level of the repository. So alongside all my project folders, I have the /trunk, /tags and /branches folders, all of which are empty.

What would be the best way to move everything into the /trunk folder in the repo AND have it so that I don't have any of those three folders actually visible in my working copy?

I have files in my working copy that I don't want to check in just yet as they aren't complete, so I'd really prefer to do this without having to first check everything in if possible. If not possible, then I'll just hold off on doing it until I'm ready to check everything in.

Can I just right-click drag the folders into the trunk folder and then under TortoiseSVN, select move? That would still leave me with at least the /trunk folder on my local disk though.

share|improve this question

migrated from stackoverflow.com Dec 23 '12 at 0:56

This question came from our site for professional and enthusiast programmers.

1  
svn ls REPOROOT outpul, pls, if you want exact commands –  Lazy Badger Dec 13 '12 at 20:14

1 Answer 1

up vote 3 down vote accepted

Version 1 (server-side move)

  • svn move REPO-URL/DIR REPO-URL/trunk/DIR for all and any mispaced folder

  • svn relocate REPO-URL REPO-URL/trunk/ (TBT!!!) also read svn help relocate before using command.

  • svn up

Version 2 (client-side move)

  • Inside your WC, which is (?) WC of repository-root, move all your project's folders inside trunk folder (Use TortoiseSVN Move - RClick and Drag),
  • Commit results,
  • Checkout a new working copy into new location from REPO/trunk,
  • Delete 1-st Working Copy (the one you checked out from the root of the repo).
share|improve this answer
    
the WC is in \users\me\documents\visual studio 2010\projects\myproject I just did a test run by making a new copy of the existing repo using the client method and it seems to have worked. So I'll just need to wait till I'm ready to commit my current changes to the repo and then I can make the move. Thanks. –  merk Dec 13 '12 at 22:03
    
Oops, just noticed one small thing. When i open the repo browser from tortoise, in the root of my test copy repo it just shows trunk, tag and branch and all my project files are in the trunk folder - perfect. But when i log onto the server and open up the visual svn manager and browse to my test repo, it shows all the files/folders still in the root, along with copies in the trunk. Why is that? Can those files be deleted within visual svn or are they likely to cause any problems? Thanks again –  merk Dec 13 '12 at 22:17
1  
@merk - your WC may be anywhere on HDD, I sugested just check root of WC by svn info (URL value in answer). svn ls REPO-URL is best and easiest way to check real current tree –  Lazy Badger Dec 13 '12 at 23:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.