# HG changeset patch # User Matt Harbison # Date 2020-11-22 19:53:17 # Node ID cb728894f91dd9cd7cf15b7e476e393433e85dff # Parent 87e7dd8e77346d80f7c41f7a5dfdd04e305c0048 helptext: fix sentence in extensions documentation Differential Revision: https://phab.mercurial-scm.org/D9366 diff --git a/mercurial/helptext/internals/extensions.txt b/mercurial/helptext/internals/extensions.txt --- a/mercurial/helptext/internals/extensions.txt +++ b/mercurial/helptext/internals/extensions.txt @@ -175,7 +175,7 @@ repository configuration:: Be aware that ``uisetup`` in NOT the function to configure a ``ui`` instance. It's called only once per process, not per ``ui`` instance. Also, any changes -to the ``ui`` may be discarded because the ``ui`` here temporarily loaded +to the ``ui`` may be discarded because the ``ui`` here is a temporarily loaded local configuration. So, it's generally wrong to do `ui.setconfig()` in these callbacks. Notable exception is setting ``pre/post-`` hooks and extending ``ui.__class__``.