Le 20/03/2011 02:59, Ned Deily a écrit : > On a Unix-y system, here is one way to do it (no warranty on the > installation instructions!):
With all due respect, the instructions are overly complicated, and may also run afoul of the system conventions (sudo will put files in directories that should not be touched for example). Here’s my take: Get the code $ cd where/ever $ hg clone http://hg.python.org/hooks Edit your user ~/.hgrc of the cpython clones .hg/hgrc to enable the hook [hooks] pretxncommit.whitespace = python:/home/you/where/ever/hooks/checkwhitespace.py:check_whitespace_single Regards _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
