[Python-Dev] I am now lost - committed, pulled, merged, what is "collapse"?
Ned Deily
nad at acm.org
Mon Mar 21 05:07:51 CET 2011
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
More information about the Python-Dev
mailing list