Comments
Patch
@@ -942,8 +942,14 @@ class paths(object):
for name, loc in self.ui.configitems('paths'):
# No URL is the same as not existing.
if not loc:
continue
+
+ # Options with "." are reserved for future use to define
+ # per-path attributes.
+ if '.' in name:
+ continue
+
yield path(name, loc=loc)
def __getitem__(self, key):
for path in self:
@@ -62,4 +62,19 @@
$ hg -q id
000000000000
$ cd ..
+
+Options with "." are reserved for per-path settings
+
+ $ cat >> $HGRCPATH << EOF
+ > [paths]
+ > default = http://hg.example.com/
+ > default.foo = True
+ > other = http://hg2.example.com/
+ > other.irrelevant = "some value"
+ > EOF
+ $ hg init paths-with-options
+ $ hg -R paths-with-options paths
+ gpath1 = http://hg.example.com/
+ default = http://hg.example.com/
+ other = http://hg2.example.com/