hgext/phabricator.py
changeset 44128 ff396501e841
parent 44127 59b3fe1e2021
child 44169 5d85e9ddc7b9
--- a/hgext/phabricator.py	Fri Jan 17 14:21:40 2020 -0500
+++ b/hgext/phabricator.py	Fri Jan 17 16:56:49 2020 -0500
@@ -178,11 +178,16 @@
     except IOError:
         pass
 
+    cfg = util.sortdict()
+
     if b"repository.callsign" in arcconfig:
-        ui.applyconfig(
-            {(b"phabricator", b"callsign"): arcconfig[b"repository.callsign"]},
-            source=wdirvfs.join(b".arcconfig"),
-        )
+        cfg[(b"phabricator", b"callsign")] = arcconfig[b"repository.callsign"]
+
+    if b"phabricator.uri" in arcconfig:
+        cfg[(b"phabricator", b"url")] = arcconfig[b"phabricator.uri"]
+
+    if cfg:
+        ui.applyconfig(cfg, source=wdirvfs.join(b".arcconfig"))
 
     return orig(ui, wdirvfs, hgvfs, requirements) or result  # Load .hg/hgrc