[PATCH 2 of 2] Treat extension load paths as relative to the defining hgrc

Jesse Glick jesse.glick at sun.com
Tue Mar 4 10:00:03 CST 2008


Alexis S. L. Carvalho wrote:
> Actually [paths] in global config files (e.g. /etc/mercurial/hgrc, 
> ~/.hgrc) are always resolved relative to $HOME

Well that's surprising (and apparently undocumented), but anyway with my 
patch applied, loading of extensions behaves in exactly the same way, 
since it does not touch ui.readconfig's

         if root is None:
             root = os.path.expanduser('~')

I would not expect anyone to make use of this curious fact; the purpose 
of the patch is to be able to define an extension in .hg/hgrc.



More information about the Mercurial-devel mailing list