[Python-Dev] I am now lost - committed, pulled, merged, what is "collapse"?

Éric Araujo merwok at netwok.org
Mon Mar 21 03:55:37 CET 2011


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


More information about the Python-Dev mailing list