Community Documentation

Hands-on: Hook up with an SVN repository

Last updated September 6, 2010. Created by jpetso on March 15, 2009.
Edited by figaro, stodge. Log in to edit this page.

For subversion you need the "SVN backend" module - http://drupal.org/project/versioncontrol_svn - not the CVS one.

Step 1: create an SVN repository (skip this if you already have one)

  • svnadmin create /home/joe/testrepo
  • svn co file:///home/joe/testrepo /home/joe/testrepo-checkout
  • cd /home/joe/testrepo-checkout
  • echo "Blah" > a.txt
  • svn add a.txt
  • svn commit -m 'Initial Blah!'

Step 2: set up your Drupal site with that repository

  • Enable the "Version Control API", "Commit Log" and "CVS backend" modules.
  • Go to Project administration > VCS repositories > Add SVN repository in the admin area.
  • Repository name: "Test repo", or whatever.
  • Repository root: "file:///home/joe/testrepo".
  • Save the repository, then follow the "fetch now" link.
  • Enable the "Commit messages" menu entry, or go directly to the "commitlog" path.
  • The commit shows up there and the message log will be updated on every cron run.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 5.x, Drupal 6.x
Audience
Site administrators

Develop for Drupal

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.