[Python-Dev] No more problems with new SVN repository

François Pinard pinard at iro.umontreal.ca
Fri Nov 4 16:32:24 CET 2005


[Guido van Rossum]

> Is there a way to prevent this kind of thing in the future, e.g. by
> removing or rejecting change log messages with characters that are
> considered invalid in XML?

Suppose TOP is the top of the Subversion repository.  The easiest way is 
providing a TOP/hook/pre-commit script.  If the script exits with 
non-zero status, usually with some clear diagnostic on stderr, the whole 
commit aborts, and the diagnostic is shown to the committing user.

The tricky part is getting the tentative log message from within the 
script.  This is done by popening "svnlook log -t ARG2 ARG1", where ARG1 
and ARG2 are arguments given to the pre-commit script.

-- 
François Pinard   http://pinard.progiciels-bpi.ca


More information about the Python-Dev mailing list