Tux:HOWTO Subversion

From ArdekanturWiki

Jump to: navigation, search

Contents

[edit] HOWTO: Subversion on Tux

This information is highly arbitrary and designed to tiptoe around the fact that Tux is not made for Subversion at the moment. Eventually a simple interface will be provided that allows on the fly creation, removal, and activation of repositories.

[edit] Preparing for Subversion

  1. Create a directory hierarchy for your Subversion repositories. ~/svn/repos/<your id> is recommended. The use of your user-id is to prevent conflicting namespaces.

[edit] Creating a repository

  1. Think of a succinct name for your project. For example, if you are working on Part 1 of Assignment 2 of your CS360 homework, your repository name could be cs360-assgn2-part1. This is a perfectly valid repository name.
  2. Create the subversion repository: svnadmin create ~/svn/repos/<your id>/<project name>. If all goes well there will be no output.
  3. Create a temporary directory for your files: mkdir -p ~/tmp/<project name>. Move all the files you want to be in the initial import of the project into this directory, or create them there. It is recommended you create a small README file to ensure you can see if the Subversion works.
  4. Stay in the temporary directory, and import the temporary location into the subversion repository: svn import file:///home/<your id>/svn/repos/<your id>/<project name> . -m "initial import". The -m flag tells Subversion what the upload message is for this import. If all goes well, then you will get a message saying that you've committed the first revision.

[edit] Running the Subversion Listener

  1. SSH into tux and find out what node of tux you are on. You can do this by typing uname -a at your prompt. Remember this name, as you will need it to call the server when you checkout locally.
  2. Start the Subversion listener: svnserve -r ~/svn/repos -d. The -d flag will tell the listener to start as a daemon, and the -r flag will tell the listener to not allow anyone to access any files above your repository directory.
Personal tools