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

Re: versioning a [small] MySQL database with svn?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-02-27 20:37:06 CET

On Feb 27, 2005, at 12:41 PM, Basile STARYNKEVITCH wrote:
>
> I only want to version control a project made of C source files, a few
> shell scripts, a GNUmakefile, and a MySQL database; of course I don't
> version-control mysql binary files (which are not accessible to me),
> only the result of mysqldump.
>
> So I will wrap svn commit inside a shell script, but I still believe
> it is a pity that *transforming* commands (like mysqldump) cannot be
> invoked at commit time by the svn commit command.

I understand now; as others have pointed out, you're looking for a
*client* hook feature, rather than a server-hook feature. I believe
Clearcase has something like this.

To my knowledge, nobody's (yet) voiced much interest in such a feature.
  Maybe that will change someday. In the meantime, yes, you're right --
you can simply write a script that does the sqldump and then commits
the working copy.

>
> I still believe that modern version control systems should be able to
> version-control user data which is not in plain textual (or platform
> neutral binary) form,

Modern version control systems can version-control anything you want:
textual, binary, it doesn't matter. Subversion treats all files as
opaque collections of bytes, so there are no limits as to what you can
version-control.

But no, it doesn't have client-side scriptability features.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 27 20:39:27 2005

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.