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

Re: svn import repository?

From: <cmpilato_at_collab.net>
Date: 2002-01-20 19:50:52 CET

Sander Smeenk <ssmeenk@freshdot.net> writes:

> What is a commit-hook?

When a user commits changes back to the repository, the repository
itself has the option of running some scripts at certain times during
the commit process (perhaps, to make sure that the user has permission
to commit, or make sure that the incoming log message isn't empty,
etc.)

When the user first requests that a commit transaction be created, the
start-commit hook is run (this, like the others I will mention, is
stored in the /hooks directory of the repository tree). Just before
that transaction is actually committed to the repository, a pre-commit
hook is run. And just after the successful commit, the post-commit
script is run.

Our server has a pre-commit (or is it, start-commit...I forget) hook
to make sure that the log message is not empty. If it is empty, the
commit is disallowed and errors are returned.

Our post-commit hook does several things, like mailing the commit
email to the svn@subversion.tigris.org mailing list, and backing up
the repository.

> Where can I find server-logs?

Depends on your Apache installation. By default, they live in
/usr/local/apache2/logs/, but you might have set them up to live in
/var/log or elsewhere.

> How do I enable logging?

It happens by default.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:57 2006

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.