New submission from Nick Coghlan:

Setting up the same commit checks locally that the main repo enforces for 
incoming patch sets can save a great deal of frustration with the server 
rejecting "hg push" for changes (this can be especially frustrating if you have 
already merged changes across branches).

The committer section of the devguide [1] should explain how to:

1. Check out the hooks repo from
2. Configure the whitespace checking hook by adding this to hgrc for the 
relevant repo(s) (adjusting the path appropriately for the checked out location 
of the hooks repo):

commit = python:~/devel/hg_hooks/


components: Devguide
messages: 174810
nosy: ezio.melotti, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Explain how to set up the whitespace commit hook locally
type: enhancement

Python tracker <>
Python-bugs-list mailing list

Reply via email to