<p>How do I create a branch in subversion that is deeper' than just the 'branches' directory?</p>

<p>I have the standard <code>trunk</code>, <code>tags</code> and <code>branches</code> structure and I want to create a branch that is several directories deeper than the 'branches' tag.</p>

<p>Using the standard svn move method, it gives me a <strong>folder not found</strong> error. I also tried copying it into the branches folder, checked it out, and the 'svn move' it into the tree structure I wanted, but also got a 'working copy admin area is missing' error.</p>

<p>What do I need to do to create this?</p>

<p>For the sake of illustration, let us suppose I want to create a branch to go directly into 'branches/version_1/project/subproject' (which does not exist yet)?</p>

[{'answer_id': 52799, 'author': 'Blair Conrad', 'author_id': 1199, 'author_profile': 'https://Stackoverflow.com/users/1199', 'pm_score': 5, 'selected': True, 'text': '<pre><code>svn copy --parents http://url/to/subproject http://url/to/repository/branches/version_1/project/subproject\n</code></pre>\n\n<p>That should create the directory you want to put the subproject in (<code>--parents</code> means "create the intermediate directories for me").</p>\n'}, {'answer_id': 52804, 'author': 'xanadont', 'author_id': 1886, 'author_profile': 'https://Stackoverflow.com/users/1886', 'pm_score': 1, 'selected': False, 'text': "<p>If you're using <code>TortoiseSVN</code>, you can use its <strong>Repository Explorer</strong> to do such things.  Makes it all pretty <code>WYSIWYG</code> simple.</p>\n"}, {'answer_id': 52807, 'author': 'zigdon', 'author_id': 4913, 'author_profile': 'https://Stackoverflow.com/users/4913', 'pm_score': 2, 'selected': False, 'text': "<p>Since subversion doesn't actually think of branches as anything special other than more directories, you can always just create the directory tree you want (with svn mkdir) then copy the code you want into the tree location.</p>\n\n<p>Or just use the --parents flag @BlairC mentioned.</p>\n"}, {'answer_id': 52818, 'author': 'Kit Roed', 'author_id': 1339, 'author_profile': 'https://Stackoverflow.com/users/1339', 'pm_score': 2, 'selected': False, 'text': '<p>I second the use of TortoiseSVN, simply right-click on the directory and go to TortoiseSVN->Branch/tag... to quickly create a branch at a specified directory.  Be sure to fill out the URL to be what you want it to be on the resulting "Copy (Branch / Tag)" dialog window.</p>\n'}, {'answer_id': 52878, 'author': 'warsze', 'author_id': 4968, 'author_profile': 'https://Stackoverflow.com/users/4968', 'pm_score': 1, 'selected': False, 'text': "<p><code>SVN</code> doesn't really manage your branches.  It simply does a wholesale copy. It's up to you how you want to manage it.</p>\n"}]
['https://Stackoverflow.com/questions/52794', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/277/']