tags:

views:

2715

answers:

3

Hey all,

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?

A: 

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.

Sander Rijken
Thnx for your reply.Well I have multiple projects in the root folder and I can access them ok. What I am trying to do is to move a folder from one project to another and I dont want to loose the revisions either.. So like from http://servername/svn/proj1/tags to http://servername/svn/proj2/tags.when I use the svn move command I get the same message (repos permanently moved... please relocate) which is really puzzling.
Randeep
I think /svn/proj1 and /svn/proj2 are two different repositories. Use `svn info` on both URLs to see the repository GUID. If they are different repositories, you cannot move/copy files between them. A file's history is tracked within a single repository
Sander Rijken
Thanks Sander. The repository UUIDs are different. Looks like I ont have different repos. I have decided to move the files anyway and for the revisions I will keep the old repos untouched. once again thanks for your reply
Randeep
A: 

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.

PeterJCLaw
Thnx for your reply.Yep im fairly new to svn... Well my working copy is pointing to the new location already as I have checked it out from the new location. What I am tryng to do is to move a folder along with all the revisions from one project to another... So like from http://servername/svn/proj1/tags to http://servername/svn/proj2/tags. when I use the svn move command I get the same message which is really puzzling.
Randeep
OK, from the sounds of it you've actually got two different subversion repos, server/svn/proj1 and server/svn/proj2. If this is the case then as far as I know you're not going to be able to move them across.Have you tried checking out server/svn - unless there's large amounts of content this might be a faster way to move the folder. It would also establish whether or not you have a single repo.
PeterJCLaw
If you are trying to move a folder between repos then you might find this: http://nileshbansal.blogspot.com/2006/03/moving-folder-across-svn-repositories.html useful.
PeterJCLaw
Thanks Peter. Looks like I dont have a single repo which is probably why I was unable to perform simple commands like move. I have decided to move the files anyway and for the revisions I will keep the old repos untouched. once again thanks for your reply.
Randeep
A: 

Make sure you have the locaction block specified correctly in your apache config file:

<Location /svn>

not

<Location /svn/>
Stefan
yep the location block is specified correctly.
Randeep