Subversion on Site5

From Julian Yap

Site5 provides Subversion access via SSH. These are my notes on getting it working and basic usage.

Site5 is my current Web hosting provider. I highly recommend them.

If you would like to consider joining Site5, please click on my affiliate link here.

Contents

Create your Repository

svnadmin create /home/[username]/repos

Creating the Layout, and Importing Initial Data

$ mkdir tmpdir
$ cd tmpdir
$ mkdir projectA
$ mkdir projectA/trunk
$ mkdir projectA/branches
$ mkdir projectA/tags
$ mkdir projectB
$ mkdir projectB/trunk
$ mkdir projectB/branches
$ mkdir projectB/tags
…
$ svn import . file:///path/to/repos --message 'Initial repository layout'
Adding         projectA
Adding         projectA/trunk
Adding         projectA/branches
Adding         projectA/tags
Adding         projectB
Adding         projectB/trunk
Adding         projectB/branches
Adding         projectB/tags
…
Committed revision 1.
$ cd ..
$ rm -rf tmpdir

You can verify the results of the import by running the svn list command:

$ svn list --verbose file:///path/to/repos
      1 harry               May 08 21:48 projectA/
      1 harry               May 08 21:48 projectB/
…

Site5 specific issues

  • Request to Site5 support that they change your shell to Bash. Specify your username and the reason ("for Subversion access").
    • Explanation: We offer different shells for different levels of users and different purposes. This is a large part of the reason why when you ask for shell to be enabled, a technicians will typically ask "what for?". If you are using SVN and would like to get rid of the entry banner, simply submit a support request, include your main account and the username you are using to connect and request to have you shell switched to "bash". Simple as that! :D

Notes

Mostly from Version Control with Subversion, a free book about Subversion.