Since the fix for issue #970, /etc/mercurial/hgrc is ignored

Issue #997 open
Gábor Stefanik
created an issue

We have a few extensions, hooks and other settings that need to be configured for all of our Hg repos. To save the headache of configuring every one of these individually, we configure these in the global config file /etc/mercurial/hgrc.

Since the fix for issue #970, the global config file, and almost every other configuration file, is ignored. As a result, our global settings are no longer being applied in 1.60.

Comments (6)

  1. Gábor Stefanik reporter

    The correct way to get a proper "ui" object in is:

    u = uimod.ui.load() if hasattr(uimod.ui, 'load') else uimod.ui()

    This works both in new versions that require load() to parse the global config files, and older versions that don't have load().

  2. Log in to comment