Repo browser in svn “Repository moved permanently

2019-04-04 02:58发布

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?

11条回答
地球回转人心会变
2楼-- · 2019-04-04 03:21

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楼-- · 2019-04-04 03:22

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.

查看更多
仙女界的扛把子
4楼-- · 2019-04-04 03:23

check if you have duplicate name in svn repo and htdocs/html folder.

查看更多
We Are One
5楼-- · 2019-04-04 03:24

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.

查看更多
\"骚年 ilove
6楼-- · 2019-04-04 03:32

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.

查看更多
登录 后发表回答