Update PEP 385 with latest hooks work
This commit is contained in:
parent
6db3207923
commit
a60d507cf5
22
pep-0385.txt
22
pep-0385.txt
|
@ -262,7 +262,22 @@ should be developed and deployed. The following hooks are being used:
|
||||||
on every build slave for the branch in which the changeset occurs.
|
on every build slave for the branch in which the changeset occurs.
|
||||||
|
|
||||||
The `hooks repository`_ contains ports of these server-side hooks to
|
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
|
* check contributors: in the current setup, all changesets bear the
|
||||||
username of committers, who must have signed the contributor
|
username of committers, who must have signed the contributor
|
||||||
|
@ -285,9 +300,8 @@ basis, akin to Subversion's ``svn:eol-style`` properties. This
|
||||||
information is kept in a versioned file called ``.hgeol``, and such a
|
information is kept in a versioned file called ``.hgeol``, and such a
|
||||||
file has already been checked into the Subversion repository.
|
file has already been checked into the Subversion repository.
|
||||||
|
|
||||||
A hook on the server side that turns down any changegroup or changeset
|
A hook also exists on the server side to reject any changeset
|
||||||
introducing inconsistent newline data can still be implemented, if
|
introducing inconsistent newline data (see above).
|
||||||
deemed necessary.
|
|
||||||
|
|
||||||
.. _eol extension: http://mercurial.selenic.com/wiki/EolExtension
|
.. _eol extension: http://mercurial.selenic.com/wiki/EolExtension
|
||||||
.. _win32text extension: http://mercurial.selenic.com/wiki/Win32TextExtension
|
.. _win32text extension: http://mercurial.selenic.com/wiki/Win32TextExtension
|
||||||
|
|
Loading…
Reference in New Issue