diff -r fcad94e969a5 committing.rst --- a/committing.rst Mon Apr 13 18:23:37 2015 -0400 +++ b/committing.rst Tue Apr 14 10:57:52 2015 -0400 @@ -304,10 +304,25 @@ will reject all changesets having the wrong line endings, so enabling this extension on your local computer is in your best interest. +As a core developer, it can be very helpful to set up the same commit checks +locally that the main repo enforces for incoming patch sets. This can save a +great deal of frustration with the server rejecting ``hg push`` for changes +(which can be especially time consuming if you have already merged changes +across branches). + +Configuring and using the whitespace checking hook found in the `hooks +repository`_ will help check incoming patch sets. To configure the whitespace +checking hook add this to ``~/.hgrc`` for the relevant repo(s) (remember to +adjust the path appropriately for the checked out location of the +`hooks repository`_):: + + [hooks] + commit = python:~/devel/hg_hooks/checkwhitespace.py:check_whitespace_single .. _configuration file: http://www.selenic.com/mercurial/hgrc.5.html#files .. _extended diff format: http://www.selenic.com/mercurial/hg.1.html#diffs .. _eol extension: http://mercurial.selenic.com/wiki/EolExtension +.. _hooks repository: https://hg.python.org/hooks Clones Setup