##// END OF EJS Templates
zeroconf: forward all arguments passed to ui.configitems() wrapper...
Yuya Nishihara -
r28038:72f2a19c stable
parent child Browse files
Show More
@@ -163,8 +163,8 b' def config(orig, self, section, key, def'
163 163 return path
164 164 return orig(self, section, key, default, untrusted)
165 165
166 def configitems(orig, self, section, untrusted=False):
167 repos = orig(self, section, untrusted)
166 def configitems(orig, self, section, *args, **kwargs):
167 repos = orig(self, section, *args, **kwargs)
168 168 if section == "paths":
169 169 repos += getzcpaths()
170 170 return repos
@@ -97,6 +97,14 b' password should be masked in plain outpu'
97 97 }
98 98 ]
99 99
100 zeroconf wraps ui.configitems(), which shouldn't crash at least:
101
102 $ hg paths --config extensions.zeroconf=
103 dupe = $TESTTMP/b#tip (glob)
104 dupe:pushurl = https://example.com/dupe
105 expand = $TESTTMP/a/$SOMETHING/bar (glob)
106 insecure = http://foo:***@example.com/
107
100 108 $ cd ..
101 109
102 110 sub-options for an undeclared path are ignored
General Comments 0
You need to be logged in to leave comments. Login now