[Commented On] D8524: phabricator: load .arcconfig during reposetup (issue6331)
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Sat May 16 17:04:11 UTC 2020
mharbison72 added a comment.
I'll try to take a closer look at this some time this weekend. In the meantime, can you explain more why it didn't work for you? There are tests that cover this feature, so I'm wondering if some coverage is missing.
I'm not sure if this is intentional, but it appears that it will unconditionally override even `.hg/hgrc` configs if `.arcconfig` is present. Before it would only override the global config, load `.arcconfig`, and then load `.hg/hgrc`. I guess it's only a small benefit that you could re-target the phab instance without dirtying the repo, so I'm not strongly against the change.
One of the lines looks like it might be long-ish, so you might want to run `./run-tests --local test-phabricator.t test-check-*` to make sure it's OK.
INLINE COMMENTS
> phabricator.py:175
> + # Only check for .arcconfig on a localrepo.
> + if not hasattr(repo, 'wvfs'):
> + return
`if not repo.local()` is the typical way to do this check.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8524/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8524
To: sfink, mharbison72
Cc: Kwan, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200516/8f7802a3/attachment-0002.html>
More information about the Mercurial-patches
mailing list