Move Directory across SVN repository using Tortoise SVN

SvnTortoisesvn

Svn Problem Overview


How to move a sub directory from one directory to another, given that both are inside the same SVN repository? I am using tortoise SVN.

Svn Solutions


Solution 1 - Svn

Select the folder/files that you want to move, then RIGHT-CLICK them and drag them to where you want to move them. A menu will come up with an option "SVN Move versioned files here"

As clarified by phenry, the destination folder must be recognized as an SVN folder. The folder should already be committed to the repository or you can choose Add to set it to be added.

If the destination folder isn't part of an SVN repository, use the SVN Export command after your right-click and drag to copy the files to any destination folder.

Solution 2 - Svn

Note that https://stackoverflow.com/questions/264571/move-directory-across-svn-repository-using-tortoise-svn/264576#264576">Chris Thompson's accepted answer only works if both directories are already recognized by TortoiseSVN. If you create a new folder in Explorer and try to move a file to it from an existing folder, you won't get the TortoiseSVN contextual menu items. After you create the new folder, you have to do either a Commit action (which creates a new version number) or an Add action (which doesn't), so TortoiseSVN knows about the new folder, and then you'll get the option to move the items in SVN. More http://www.modhul.com/2008/11/14/moving-directories-in-a-svn-repository-using-tortoise-svn/">here</a>;.

Solution 3 - Svn

Or in the Repository Browser, you can just drag the file/folder and drop into the desired folder.

Solution 4 - Svn

If you have renamed the parent folder before moving, you would see a "Cross/Not allowed" sign when moving.

The workaround is to first move the child and then only re-name the parent (undo if you already renamed the parent).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGravitonView Question on Stackoverflow
Solution 1 - SvnChris ThompsonView Answer on Stackoverflow
Solution 2 - SvnphenryView Answer on Stackoverflow
Solution 3 - SvnAtempcodeView Answer on Stackoverflow
Solution 4 - SvnSwaroopView Answer on Stackoverflow