Hands-on: Hook up with an SVN repository

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

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 "SVN 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.

Guide maintainers

jpetso's picture