Re: force commit comments
From: Juanma Barranquero <jmbarranquero_at_laley.wke.es>
Date: 2003-11-21 10:39:06 CET
> Create a pre-commit hook that checks the value of the 'svn:log' property
I have a related question: what's the best way to modify a log at
AFAICS, hooks/pre-commit.tmpl says, very prominently:
# *** NOTE: THE HOOK PROGRAM MUST NOT MODIFY THE TXN. ***
so I'm assuming the only way is to have a post-commit hook which does
svnlook log %1 -r %2 | perl -0ne "chomp; print $_" > %TEMP%\file
which, leaving aside the issue of the possible race condition for the
**Obviously, there can be no guarantee that hook processing for txn N is
---------------------------------------------------------
But if you set your Apache so the /svn location needs no user validation
IMHO, either a 3rd, empty, argument should be passed when there's no
Thanks,
Juanma
---------------------------------------------------------------------
|
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.