Mercurial > hg
changeset 45502:c7fe0dfb5312
phabricator: fix loadhgrc() override broken by D8656
This fixes some failing `test-check*` tests (at least
`test-check-code.t` was broken).
Differential Revision: https://phab.mercurial-scm.org/D9044
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 17 Sep 2020 22:45:51 -0700 |
parents | 0e75c088f0dc |
children | a8843eda9a35 |
files | hgext/phabricator.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/phabricator.py Thu Sep 17 23:09:47 2020 -0700 +++ b/hgext/phabricator.py Thu Sep 17 22:45:51 2020 -0700 @@ -167,7 +167,7 @@ @eh.wrapfunction(localrepo, "loadhgrc") -def _loadhgrc(orig, ui, wdirvfs, hgvfs, requirements, **opts): +def _loadhgrc(orig, ui, wdirvfs, hgvfs, requirements, *args, **opts): """Load ``.arcconfig`` content into a ui instance on repository open. """ result = False @@ -202,7 +202,7 @@ ui.applyconfig(cfg, source=wdirvfs.join(b".arcconfig")) return ( - orig(ui, wdirvfs, hgvfs, requirements, **opts) or result + orig(ui, wdirvfs, hgvfs, requirements, *args, **opts) or result ) # Load .hg/hgrc