In article <4D86BE29.8070900 at netwok.org>, Éric Araujo <merwok at netwok.org> wrote: > 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). That depends on your configuration but ... > 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 that's *much* better, thanks! The hg documentation does not make it clear that, in the absolute path case, PYTHONPATH does not need to be manipulated, which is what I was trying to avoid. Perhaps you could add those instructions to the devguide? -- Ned Deily, nad at acm.org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4