问题
In the repo browser when I enter the svn root (http://servername/svn) directory I get this message "Repository moved permanently to 'http//....' please relocate
There are several projects in this repository and I can access/checkout/update each project but I can't even access the root.
How can I fix this?
回答1:
I'm assuming that you're not the server admin and that you're relatively new to svn...
You'll need to tell your working copies that the remote repo has moved (see the svn book for info on how to do this). You'll also need to use the new root for your remote repo browsing.
回答2:
I got the same message because I had a double underline character within one folder name; e. g. SVNPath C:/xampp/my/path/to/the/repo/with/double/__underline/repo-folder
I removed them and it works (remember restarting the webserver)
回答3:
Just in case this also helps anyone. I found this message can appear if you have a DocumentRoot defined in your vhost.
回答4:
Make sure you have the locaction block specified correctly in your apache config file:
<Location /svn>
not
<Location /svn/>
回答5:
Usually the root is at http://servername/svn/repositoryname. I think there are some known problems when you have the repository in the root (ie when your URL is what you describe, and the name of the repos is 'svn').
Edit: This means there's no level above /svn/proj1/
as far as Subversion is concerned. It is also impossible to move (with keeping history) items from /svn/proj1/
to /svn/proj2/
. I think that you've been too active creating repositories, causing problems when trying to reuse items frome one repository in the other. See a discussion about multiple repositories vs a single one, and the faq entry on how to merge multiple repositories into one.
You might want to take a look at externals if you want to re-use part of the proj1 repository in the proj2 repository.
回答6:
Check your Apache Configuration and remove/comment the ErrorDocument redirection. That's all.
回答7:
This question is quite old now but for completeness sake; I'm accessing the SVN server by IP address but I received this message after adding a redirect in .htaccess file from a non-www domain to a www domain. So be careful with this.
回答8:
I have faced the same problem. Considering that you are not admin of the server, as I am not, I've used the svn switch --relocate
command with success:
svn switch --relocate https://my.server.url/svn/projectname https://my.server.url/new.dictory/authscm/username/svn/projectname
Of course, these two URLs and their relative directories happened to be in my case, but in general lines this solution worked fine for me, i.e., using switch --relocate
from the old to the new URL.
回答9:
I've had this with spaces in the SVN url and using Cornerstone
. Using terminal svn checkout <url>
did work instead.
回答10:
In my case if was the wrong Proxy settings for Jenkins.
回答11:
check if you have duplicate name in svn repo and htdocs/html folder.
来源:https://stackoverflow.com/questions/2068291/repo-browser-in-svn-repository-moved-permanently-to-please-relocate