[PATCH 3 of 6] scripts: docs-headings: set HGRCPATH to empty

Mads Kiilerich mads at kiilerich.com
Sun Dec 30 00:13:50 UTC 2018


On 12/29/18 10:50 PM, Thomas De Schampheleire wrote:
> # HG changeset patch
> # User Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> # Date 1546111044 -3600
> #      Sat Dec 29 20:17:24 2018 +0100
> # Node ID 60672272cef36dd45594b607036fb5d7eda5b15c
> # Parent  a7df630cfe21e5e66c555b9fa88ef2c3930870b1
> scripts: docs-headings: set HGRCPATH to empty
>
> User settings could pollute output, for example in my case, within a
> virtualenv I get the following on every 'hg' invocation:
>
> *** failed to import extension absorb from
> /home/tdescham/repo/contrib/hg-experimental/installed/lib64/python2.7/site-packages/hgext3rd/absorb:
> 'module' object has no attribute 'command'


It seems quite rare to have such problems that can be fixed by setting 
HGRCPATH, and where doing it doesn't cause other problems. It doesn't 
seem like a general problem or solution.

It seems like it would be a better solution to solve it in your setup, 
perhaps by setting HGRCPATH in the virtualenv "activate" script. That 
will be closer to fixing the root cause, and allow you to run hg from 
the virtualenv command prompt.

(But also, this command could also just use a glob to find files to 
process, and leave it to the user to run `hg diff` manually to see what 
actually changed. That seems like a better solution than polishing the 
hg invocation ... and would also avoid the question of whether we should 
set HGPLAIN.)

/Mads



More information about the kallithea-general mailing list