SVN: How to switch from remote repository to local?












-1















I have an SVN repository on a remote server. My local working copy accesses it through the svn:// protocol. I want to move the repository to my local PC. I've copied the repository over, but when I try to switch (relocate) my working copy to use the local repository (accessing it just through the file system - no server running), svn complains that it's not a valid relocation.



I.e. the Windows command 'svn switch --relocate svn://diskstation/svnrepository c:UsersBobDocumentssvnrepository' gives the error 'svn: E200004: 'svn://diskstation/svnrepository' to 'C:/Users/Bob/Documents/svnrepository' is not a valid relocation'



How can I get my working copy to start using the local repository?



Thank you,
Bob










share|improve this question























  • BTW, switch --relocate deprecated a lot of versions ago. You must to use svn relocate in up-to-date SVN-client. And running svnserve local will be better solution technicaly

    – Lazy Badger
    Jan 12 at 12:42
















-1















I have an SVN repository on a remote server. My local working copy accesses it through the svn:// protocol. I want to move the repository to my local PC. I've copied the repository over, but when I try to switch (relocate) my working copy to use the local repository (accessing it just through the file system - no server running), svn complains that it's not a valid relocation.



I.e. the Windows command 'svn switch --relocate svn://diskstation/svnrepository c:UsersBobDocumentssvnrepository' gives the error 'svn: E200004: 'svn://diskstation/svnrepository' to 'C:/Users/Bob/Documents/svnrepository' is not a valid relocation'



How can I get my working copy to start using the local repository?



Thank you,
Bob










share|improve this question























  • BTW, switch --relocate deprecated a lot of versions ago. You must to use svn relocate in up-to-date SVN-client. And running svnserve local will be better solution technicaly

    – Lazy Badger
    Jan 12 at 12:42














-1












-1








-1








I have an SVN repository on a remote server. My local working copy accesses it through the svn:// protocol. I want to move the repository to my local PC. I've copied the repository over, but when I try to switch (relocate) my working copy to use the local repository (accessing it just through the file system - no server running), svn complains that it's not a valid relocation.



I.e. the Windows command 'svn switch --relocate svn://diskstation/svnrepository c:UsersBobDocumentssvnrepository' gives the error 'svn: E200004: 'svn://diskstation/svnrepository' to 'C:/Users/Bob/Documents/svnrepository' is not a valid relocation'



How can I get my working copy to start using the local repository?



Thank you,
Bob










share|improve this question














I have an SVN repository on a remote server. My local working copy accesses it through the svn:// protocol. I want to move the repository to my local PC. I've copied the repository over, but when I try to switch (relocate) my working copy to use the local repository (accessing it just through the file system - no server running), svn complains that it's not a valid relocation.



I.e. the Windows command 'svn switch --relocate svn://diskstation/svnrepository c:UsersBobDocumentssvnrepository' gives the error 'svn: E200004: 'svn://diskstation/svnrepository' to 'C:/Users/Bob/Documents/svnrepository' is not a valid relocation'



How can I get my working copy to start using the local repository?



Thank you,
Bob







svn repository






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 10 at 22:31









BobBob

1




1













  • BTW, switch --relocate deprecated a lot of versions ago. You must to use svn relocate in up-to-date SVN-client. And running svnserve local will be better solution technicaly

    – Lazy Badger
    Jan 12 at 12:42



















  • BTW, switch --relocate deprecated a lot of versions ago. You must to use svn relocate in up-to-date SVN-client. And running svnserve local will be better solution technicaly

    – Lazy Badger
    Jan 12 at 12:42

















BTW, switch --relocate deprecated a lot of versions ago. You must to use svn relocate in up-to-date SVN-client. And running svnserve local will be better solution technicaly

– Lazy Badger
Jan 12 at 12:42





BTW, switch --relocate deprecated a lot of versions ago. You must to use svn relocate in up-to-date SVN-client. And running svnserve local will be better solution technicaly

– Lazy Badger
Jan 12 at 12:42










1 Answer
1






active

oldest

votes


















-1














To specify a file path, use file:/// e.g. file:///C:/Users/Bob/Documents/svnrepository






share|improve this answer
























  • This seems more like a comment than an answer. Perhaps explaining how this answers the specific question posed by OP will make it more clear how this answers the question.

    – music2myear
    Jan 12 at 19:13











  • Instead of using 'C:/Users/Bob/Documents/svnrepository' in the switch command, use 'file:///C:/Users/Bob/Documents/svnrepository'.

    – Bob
    Jan 12 at 23:15











  • Bob, please read the help section to learn how Superuser works. This information should be added to your answer rather than be placed in a comment. It should not be necessary to read the comments to learn the answr

    – music2myear
    Jan 13 at 0:24











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1392952%2fsvn-how-to-switch-from-remote-repository-to-local%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









-1














To specify a file path, use file:/// e.g. file:///C:/Users/Bob/Documents/svnrepository






share|improve this answer
























  • This seems more like a comment than an answer. Perhaps explaining how this answers the specific question posed by OP will make it more clear how this answers the question.

    – music2myear
    Jan 12 at 19:13











  • Instead of using 'C:/Users/Bob/Documents/svnrepository' in the switch command, use 'file:///C:/Users/Bob/Documents/svnrepository'.

    – Bob
    Jan 12 at 23:15











  • Bob, please read the help section to learn how Superuser works. This information should be added to your answer rather than be placed in a comment. It should not be necessary to read the comments to learn the answr

    – music2myear
    Jan 13 at 0:24
















-1














To specify a file path, use file:/// e.g. file:///C:/Users/Bob/Documents/svnrepository






share|improve this answer
























  • This seems more like a comment than an answer. Perhaps explaining how this answers the specific question posed by OP will make it more clear how this answers the question.

    – music2myear
    Jan 12 at 19:13











  • Instead of using 'C:/Users/Bob/Documents/svnrepository' in the switch command, use 'file:///C:/Users/Bob/Documents/svnrepository'.

    – Bob
    Jan 12 at 23:15











  • Bob, please read the help section to learn how Superuser works. This information should be added to your answer rather than be placed in a comment. It should not be necessary to read the comments to learn the answr

    – music2myear
    Jan 13 at 0:24














-1












-1








-1







To specify a file path, use file:/// e.g. file:///C:/Users/Bob/Documents/svnrepository






share|improve this answer













To specify a file path, use file:/// e.g. file:///C:/Users/Bob/Documents/svnrepository







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 12 at 16:05









BobBob

1




1













  • This seems more like a comment than an answer. Perhaps explaining how this answers the specific question posed by OP will make it more clear how this answers the question.

    – music2myear
    Jan 12 at 19:13











  • Instead of using 'C:/Users/Bob/Documents/svnrepository' in the switch command, use 'file:///C:/Users/Bob/Documents/svnrepository'.

    – Bob
    Jan 12 at 23:15











  • Bob, please read the help section to learn how Superuser works. This information should be added to your answer rather than be placed in a comment. It should not be necessary to read the comments to learn the answr

    – music2myear
    Jan 13 at 0:24



















  • This seems more like a comment than an answer. Perhaps explaining how this answers the specific question posed by OP will make it more clear how this answers the question.

    – music2myear
    Jan 12 at 19:13











  • Instead of using 'C:/Users/Bob/Documents/svnrepository' in the switch command, use 'file:///C:/Users/Bob/Documents/svnrepository'.

    – Bob
    Jan 12 at 23:15











  • Bob, please read the help section to learn how Superuser works. This information should be added to your answer rather than be placed in a comment. It should not be necessary to read the comments to learn the answr

    – music2myear
    Jan 13 at 0:24

















This seems more like a comment than an answer. Perhaps explaining how this answers the specific question posed by OP will make it more clear how this answers the question.

– music2myear
Jan 12 at 19:13





This seems more like a comment than an answer. Perhaps explaining how this answers the specific question posed by OP will make it more clear how this answers the question.

– music2myear
Jan 12 at 19:13













Instead of using 'C:/Users/Bob/Documents/svnrepository' in the switch command, use 'file:///C:/Users/Bob/Documents/svnrepository'.

– Bob
Jan 12 at 23:15





Instead of using 'C:/Users/Bob/Documents/svnrepository' in the switch command, use 'file:///C:/Users/Bob/Documents/svnrepository'.

– Bob
Jan 12 at 23:15













Bob, please read the help section to learn how Superuser works. This information should be added to your answer rather than be placed in a comment. It should not be necessary to read the comments to learn the answr

– music2myear
Jan 13 at 0:24





Bob, please read the help section to learn how Superuser works. This information should be added to your answer rather than be placed in a comment. It should not be necessary to read the comments to learn the answr

– music2myear
Jan 13 at 0:24


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1392952%2fsvn-how-to-switch-from-remote-repository-to-local%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix