« Honesty is always best. | Main | Plone hosting recommedation »

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.

See also

http://www.gophernet.org/articles/svn/

http://svn.haxx.se/users/archive-2006-05/1240.shtml

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/1687/18952938

Listed below are links to weblogs that reference Windows SVN Problems:

Comments

Here is a nice link to some videos about using SVN!

http://pollvu.blip.tv/

hope they help you guys

Post a comment

If you have a TypeKey or TypePad account, please Sign In

Friends

Blog powered by TypePad
Member since 07/2003

My Other Accounts

Dopplr Facebook Flickr ICQ Last.fm LinkedIn Ma.gnolia MSN Messenger Skype Twitter

Quick Links