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

Scripting (was: The `on_disk' and `in_repos' templates.)

From: Stefan Monnier <monnier+gmane.comp.version-control.subversion.devel/news/_at_rum.cs.yale.edu>
Date: 2003-04-09 17:55:09 CEST

As I kept thinking that it would be better if `svn admin ran a
script rather than have a `svn-admin script, I started to
wonder why that is.

I think it's good for programs to be scriptable easily, and it's
good to add hooks so that operations can be done at particular
times, automatically. The difference between an external script
and a natively supported hook is that the external script will
only be run if the user uses it, obviously.

This becomes particularly important when the user is separated
from the `svn' executable by a GUI layer (for example).

Now, I don't know nearly enough about those on-disk-template
and in-repos-template thingies to know what should be done, but
if it's at all possible, I think it'd be great to take them
out of the C code and put them into a default script and
have the script be run by `svn admin'.

This way, the args would still be supported, but not in C code
and they could be much more easily hacked on locally.

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 9 19:29:49 2003

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

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