mercurial/ui.py
changeset 29412 b62bce819d0c
parent 29378 fea71f66ebff
child 29413 31d3ab7985b8
equal deleted inserted replaced
29411:e1778b9c8d53 29412:b62bce819d0c
   226             # expand vars and ~
   226             # expand vars and ~
   227             # translate paths relative to root (or home) into absolute paths
   227             # translate paths relative to root (or home) into absolute paths
   228             root = root or os.getcwd()
   228             root = root or os.getcwd()
   229             for c in self._tcfg, self._ucfg, self._ocfg:
   229             for c in self._tcfg, self._ucfg, self._ocfg:
   230                 for n, p in c.items('paths'):
   230                 for n, p in c.items('paths'):
       
   231                     # Ignore sub-options.
       
   232                     if ':' in n:
       
   233                         continue
   231                     if not p:
   234                     if not p:
   232                         continue
   235                         continue
   233                     if '%%' in p:
   236                     if '%%' in p:
   234                         self.warn(_("(deprecated '%%' in path %s=%s from %s)\n")
   237                         self.warn(_("(deprecated '%%' in path %s=%s from %s)\n")
   235                                   % (n, p, self.configsource('paths', n)))
   238                                   % (n, p, self.configsource('paths', n)))