Thursday, January 29, 2009

Tips on getting Subversion working

It took some trial and error to get Subversion running. Perhaps someone can make use of my lessons learned:

The instructions at the bottom of the link that Chris provided need some tweaking. Try:

1. make the repository using their instructions.

2. make a repository in your new repository for this project
$ svnadmin create /u/svn/repos/username/projectname

3. create passwords. Change your own password, just to ensure that you know what your password is.

4. edit the access file.

5. import your work.
$ svn import . http://z.cs.utexas.edu/svn/username/projectname
This opens a vi editor. The purpose is to add a comment to your import. Enter some useful text (ie. importing project). Press ESC, then ":exit" to exit. Hopefully it should then prompt you for a password, or user name then password. Enter as appropriate.

6. checkout a copy:
$ svn checkout http://z.cs.utexas.edu/svn/username/projectname

You should now have a working copy. Be aware that it created a new folder for the working copy. If you were in ./foo, the working copy is in ./foo/projectname.

Here is a link to the Subversion user manual: http://svnbook.red-bean.com/nightly/en/index.html

No comments:

Post a Comment