Windows SVN Problems
Subversion file control (SVN) is quite often a life-safer. However, on both *nix and Windows platforms it can be a pain to set up. In the hope I save someone else some time, here's some notes from a recent Windows set up I completed:
Commands & Syntax
- svnadmin create projectname
- svn import c:/path/to/project/to/import/ file:///C:/repositorydirectory/project/ -m "intial import"
- svn checkout file:///C:/path/to/live/files
Tips
Don't forget to run svnserve (svnserve -d -r C:\repositorydirectory\project ) to access the repository across network .
If you are getting errors similar to the following in the Eclipse IDE, when you try to commit changes:
org.tigris.subversion.javahl.ClientException: A connection attempt failed
org.tigris.subversion.javahl.ClientException: Couldn't find a repository
svn: Commit failed
svn: Can't connect to host
svn: No repository found
Try these steps:
- svnserve.conf and passwd files MUST be set up to allow remote user login and password, using the same login details as your windows login account.
- Remote user must have access to the svn directory, using their currently logged in account. If you cant browse to it across the network, chances are you won't be able to commit to it either.
- Make sure owner of file (displayed next to the file in the Eclipse IDE for example) is the windows owner you are logging in as (i.e. work). You may need to login on the server as that user and create the project to be sure.
Here is a nice link to some videos about using SVN!
http://pollvu.blip.tv/
hope they help you guys
Posted by: hamy | 12 July 2008 at 10:36 PM