How to access remote .SVN with TortoiseSVN
I just started working on a new project that already contains a .svn folder and respective files on a remote server. The previous developer obviously used this file to monitor the file changes however:
The .svn is in the public www but a .htaccess forwards all command开发者_开发问答s to a different directory.
How do I go about figuring out the correct URI to enter into tortoise to be able to access this .svn?
Thx
EDIT: I need to know the URI so that I can browse the repo. The repo is stored on the file system at www/.svn however when I type in http://www.mysite.com/.svn it gives me a warning
"Repository moved permanently to 'http://www.mysite.com/.svn/*; please relocate"
I believe that this is caused by the .htaccess in www/ redirecting all traffic.
Just a guess, could you open the .svn folder and check for files inside it, I am sure there must be some entry pointing to the correct URL
if the dir that contains the .svn is on your local machine and if tortoisesvn is installed, you should be able to open a windows explorer, navigate to the folder which contains the .svn directory, right click on the directory (that contains .svn dir) and choose properties. There should be a tab that shows information about which subversion repository the folder is connected to.
Once you determine the url from the dir properties dialog, you should be able to use tortoisesvn browse repository feature (which is also available by right clicking on a directory from within windows explorer). Enter the url (or just the first part of the url) and you should be able to see what else is in the svn repo that is managing the directory.
(Sorry I can't be more specific, I don't have a windows machine handy, but hopefully this should help point you in the right direction)
If you mean that the URL has changed since then, and if you really want to keep the working copy already present on your workstation, you can use the TortoiseSVN Relocate
command at the root of the project. Then you will have to do an update, to make sure you're up to date with the server.
But it is rather advised to start a new, clean working copy with a checkout, rather than using an existing one.
The .svn is in the public www but a .htaccess forwards all commands to a different directory.
How do I go about figuring out the correct URI to enter into tortoise to be able to access this .svn?
Or do you mean you're trying to access it with another tool? I must admit it's a bit confusing.
If you don't know the URL (my first reaction was: but why wouldn't you know it?), you can simply use the SVN Repo-browser
of TortoiseSVN since you have that tool (that command is accessible with a right-click on your project folder), it will open a browser and the URL will be visible at the top.
From there, you should still do an update before starting to work.
I would still rather do a new checkout in that case, you don't know what's in the other developer's structure...
Thanks to Azlams post I was able to figure out that this repo was actually moved from another portion of the site making it unusable - I will just have to recreate a new one in an easier to access location.
Thanks all for your help!
精彩评论