Show More
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "conduit_uri": "https://phab.mercurial-scm.org/api", |
|
3 | "phabricator.uri": "https://phab.mercurial-scm.org/", | |
|
3 | 4 | "repository.callsign": "HG", |
|
4 | 5 | "arc.land.onto.default": "@", |
|
5 | 6 | "base": "hg:.^" |
@@ -178,11 +178,16 b' def _loadhgrc(orig, ui, wdirvfs, hgvfs, ' | |||
|
178 | 178 | except IOError: |
|
179 | 179 | pass |
|
180 | 180 | |
|
181 | cfg = util.sortdict() | |
|
182 | ||
|
181 | 183 | if b"repository.callsign" in arcconfig: |
|
182 | ui.applyconfig( | |
|
183 | {(b"phabricator", b"callsign"): arcconfig[b"repository.callsign"]}, | |
|
184 | source=wdirvfs.join(b".arcconfig"), | |
|
185 | ) | |
|
184 | cfg[(b"phabricator", b"callsign")] = arcconfig[b"repository.callsign"] | |
|
185 | ||
|
186 | if b"phabricator.uri" in arcconfig: | |
|
187 | cfg[(b"phabricator", b"url")] = arcconfig[b"phabricator.uri"] | |
|
188 | ||
|
189 | if cfg: | |
|
190 | ui.applyconfig(cfg, source=wdirvfs.join(b".arcconfig")) | |
|
186 | 191 | |
|
187 | 192 | return orig(ui, wdirvfs, hgvfs, requirements) or result # Load .hg/hgrc |
|
188 | 193 |
@@ -228,8 +228,8 b' The .arcconfig content overrides global ' | |||
|
228 | 228 | $ mv .hg/hgrc .hg/hgrc.bak |
|
229 | 229 | $ hg config phabricator --debug |
|
230 | 230 | read config from: */.hgrc (glob) |
|
231 | */.hgrc:*: phabricator.url=global (glob) | |
|
232 | 231 | $TESTTMP/repo/.arcconfig: phabricator.callsign=HG |
|
232 | $TESTTMP/repo/.arcconfig: phabricator.url=https://phab.mercurial-scm.org/ | |
|
233 | 233 | |
|
234 | 234 | But it doesn't override local config |
|
235 | 235 | $ cat >> .hg/hgrc << EOF |
General Comments 0
You need to be logged in to leave comments.
Login now