[Python-checkins] r88676 - peps/trunk/pep-0385.txt
antoine.pitrou
python-checkins at python.org
Mon Feb 28 19:22:36 CET 2011
Author: antoine.pitrou
Date: Mon Feb 28 19:22:36 2011
New Revision: 88676
Log:
Update PEP 385 with latest hooks work
Modified:
peps/trunk/pep-0385.txt
Modified: peps/trunk/pep-0385.txt
==============================================================================
--- peps/trunk/pep-0385.txt (original)
+++ peps/trunk/pep-0385.txt Mon Feb 28 19:22:36 2011
@@ -262,7 +262,22 @@
on every build slave for the branch in which the changeset occurs.
The `hooks repository`_ contains ports of these server-side hooks to
-Mercurial. One additional hook could be beneficial:
+Mercurial, as well as a couple additional ones:
+
+* check branch heads: a hook to reject pushes which create a new head on
+ an existing branch. The pusher then has to merge the superfetatory heads
+ and try pushing again.
+
+* check branches: a hook to reject all changesets not on an allowed named
+ branch. This hook's whitelist will have to be updated when we want to
+ create new maintenance branches.
+
+* check line endings: a hook, based on the `eol extension`_, to reject all
+ changesets committing files with the wrong line endings. The commits then
+ have to be stripped and redone, possibly with the `eol extension`_ enabled
+ on the comitter's computer.
+
+One additional hook could be beneficial:
* check contributors: in the current setup, all changesets bear the
username of committers, who must have signed the contributor
@@ -285,9 +300,8 @@
information is kept in a versioned file called ``.hgeol``, and such a
file has already been checked into the Subversion repository.
-A hook on the server side that turns down any changegroup or changeset
-introducing inconsistent newline data can still be implemented, if
-deemed necessary.
+A hook also exists on the server side to reject any changeset
+introducing inconsistent newline data (see above).
.. _eol extension: http://mercurial.selenic.com/wiki/EolExtension
.. _win32text extension: http://mercurial.selenic.com/wiki/Win32TextExtension
More information about the Python-checkins
mailing list