02.10.2008 11:32
subversion paths
I have a subversion repository on one machine, with working copies several others. The machine where the repository is, is not directly connected to the www. So I use svnserve and ssh authentication to access the repository from a remote machine. However I am always confused about which path to use where. So here is the list:
Suppose the repository is on a machine called comp1.example.de at /svn/repos/project. I can browse it on the local machine by pointing a webbrowser to http://localhost/repos/project
- on the local machine use either file:// with the absolute path to the project in the file system, ie
svn list file:///svn/repos/project - or access the repo via http:
svn list http://localhost/repos/project - From a remote machine, you have to access comp1.example.de via ssh and authenticate yourself. (Your account password for ssh, not the svn password in case you have the repository password protected.)
Hence, a svnserve deamon must be running on comp1.example.de, then your type
svn list svn+ssh://username@comp1.example.de/svn/repos/project
that is you use the absolute path as in the file:// protocol. That makes very much sense, only that I am always confused by the missing colon after comp1.example.de in the statement. Maybe I use scp too often.