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

Re: Pre-commit

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-09-24 21:48:22 CEST

On Mon, Sep 24, 2001 at 10:20:23AM -0500, kfogel@collab.net wrote:
> Kevin Pilch-Bisson <kevin@pilch-bisson.net> writes:
> > Pre-Commit hooks are now working.
> >
> > I thought I would post this here to see if anyone is in favour:
>
> +1, yes. We don't have CVS's safeguards against committing without a
> log message, because we don't want to force that policy on all users.
> But for _our_ repository, we know that every commit should have a log
> message.

+1

> Any objections if I install this functionality on our server? I think
> the logic should be shipped as a descriptively-named separate shell
> script in our tree, to avoid cluttering up the pre-commit template --

/trunk/tools/hook-scripts/require-log-message.sh

>...
> > --- /dev/null Tue Jul 3 15:21:52 2001
> > +++ /home/kevin/projects/svn-test/greek-repo/hooks/pre-commit Fri Sep 21 09=
> > :30:18 2001
> > @@ -0,0 +1,12 @@
> > +#!/bin/sh
> > +#
> > +# pre-commit: A simple script which exits with an error if the log message
> > +# does not contain an alphanumeric character.
> > +#
> > +# [1] REPOS-PATH (the path to this repository)
> > +# [2] TXN-NAME (the name of the txn about to be committed)
> > +#
> > +SVNLOOK=3D/usr/local/svn/bin/svnlook
> > +LOG=3D`${SVNLOOK} ${1} txn ${2} log`

Watch out for those =3D thingies.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
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:42 2006

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