[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion on Drupal

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Thu, 11 Aug 2011 22:48:35 -0500

On Aug 11, 2011, at 21:56, Andy Canfield wrote:

> My goal in learning Subversion was to put our web site under version control. Now I have my doubts as to whether Subversion can handle it.
>
> The web site uses Drupal. And Drupal has the characteristic that much of the site is contained in a MySQL database. For example, if I install a module and set it up, the module is a disk file, but the configuration of that module is in the database. If I make a change, part of the change may be in a PHP code file on disk, part may be in the database. The database contains both user data and configuration data, intermingled.
>
> I could get Subversion to work. I would have a pre-commit script to back up the database to a disk file in the working copy.

Not possible, because the working copy is on the client computer, whereas the pre-commit hook (and all hooks) run on the server computer. Unless you're saying you're working with a shared server-side working copy, in which case that's another thing I'd recommend not doing.

> I would have a post-checkout script to reload the database from the disk file.

There is no post-checkout hook, so this would have to be a script you run manually.
Received on 2011-08-12 05:49:37 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.