[Python-checkins] hooks: Update checkwhitespace comments to show use of absolute path in hgrc. (original) (raw)

ned.deily python-checkins at python.org
Mon Mar 21 05:57:01 CET 2011


http://hg.python.org/hooks/rev/9a63a9927d38 changeset: 66:9a63a9927d38 user: Ned Deily <nad at acm.org> date: Sun Mar 20 21:56:43 2011 -0700 summary: Update checkwhitespace comments to show use of absolute path in hgrc.

files: checkwhitespace.py

diff --git a/checkwhitespace.py b/checkwhitespace.py --- a/checkwhitespace.py +++ b/checkwhitespace.py @@ -4,10 +4,10 @@

To use the changeset hook in a local repository, include something like the following in your hgrc file, and make sure that this file (check_whitespace.py) -and reindent.py are in your PYTHONPATH. +and reindent.py are in the same directory.

[hooks] -pretxncommit.whitespace = python:checkwhitespace.check_whitespace_single +pretxncommit.whitespace = python:/home/hg/repos/hooks/checkwhitespace.py:check_whitespace_single """

Mercurial hooks are not run with the hook's directory in sys.path

-- Repository URL: http://hg.python.org/hooks



More information about the Python-checkins mailing list