Note that there are some explanatory texts on larger screens.

plurals
  1. POIdiots guide to moving a directory up in SVN
    primarykey
    data
    text
    <p><em>No, this is not a duplicate of <a href="https://stackoverflow.com/questions/46080/how-do-you-move-a-file-in-svn">this</a>.</em></p> <p>While I'm normally used to using visual tools with SVN, I find myself now faced with wanting to move <code>Repo/Parent/ChildX/ChildY</code> to <code>Repo/ChildY</code>. I receive the following errors and am just looking for what I'm missing here. Consider the server just installed (from a dump), nothing else available but svn.</p> <pre> > svn checkout https://localhost/Repo svn: OPTIONS of 'https://localhost/Repo': 200 OK (https://localhost) > svn move Repo/Parent/ChildX/ChildY Repo/ChildY svn: 'Repo' is not a working copy svn: 'Repo' does not exist > svn move Parent NewParent svn: '.' is not a working directory > svn move https://localhost/Repo/Parent NewParent svn: Moves between the working copy and the repository are not supported > svn move https://localhost/Repo/Parent https://localhost/Repo/NewParent svn: OPTIONS of 'https://localhost/Repo': 200 OK (https://localhost) > svn commit --message "Trying to get move command to work" svn: 'C:\SVNTest' is not a working copy </pre> <p>I find it somewhat odd that the first command (checkout) gives the same response for whatever I put behind 'Repo', like <code>https://localhost/Repo/SomeNonExistingName</code>. I'm sure I'm missing something. I found references saying that you don't need a working copy for a move, but then, how do I do a move?</p> <p>None of the commands above, whether they gave an error or OK, did an actual move. I use VisualSVN Server, and can browse the repo online.</p> <hr> <h3>Solution</h3> <p>The accepted solution below and other answers have helped solve this issue. The response to the first command above is equal to a regular response from any Apache server. The <em>200 OK</em> is the HTTP response.</p> <p>When using VisualSVN Server, the default installation is <em>under</em> <code>https://hostname/svn</code>. To checkout, you need to prefix the repository name with that path. The first command above should've read:</p> <pre>> svn checkout https://localhost/svn/Repo file1 file2 etc... Revision XXX </pre> <p>Unfortunately, this little gotcha, however trivial, isn't mentioned anywhere. After the checkout, from the same directory, the move becomes trivial:</p> <pre>> svn move Folder/SubFolder NewFolder </pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload