mercurial/ui.py
changeset 30519 20a42325fdef
parent 30480 b0a8337ba9af
child 30537 4b0e6677eed1
equal deleted inserted replaced
30518:a8b17859684a 30519:20a42325fdef
    25     config,
    25     config,
    26     encoding,
    26     encoding,
    27     error,
    27     error,
    28     formatter,
    28     formatter,
    29     progress,
    29     progress,
       
    30     pycompat,
    30     scmutil,
    31     scmutil,
    31     util,
    32     util,
    32 )
    33 )
    33 
    34 
    34 urlreq = util.urlreq
    35 urlreq = util.urlreq
   225 
   226 
   226     def fixconfig(self, root=None, section=None):
   227     def fixconfig(self, root=None, section=None):
   227         if section in (None, 'paths'):
   228         if section in (None, 'paths'):
   228             # expand vars and ~
   229             # expand vars and ~
   229             # translate paths relative to root (or home) into absolute paths
   230             # translate paths relative to root (or home) into absolute paths
   230             root = root or os.getcwd()
   231             root = root or pycompat.getcwd()
   231             for c in self._tcfg, self._ucfg, self._ocfg:
   232             for c in self._tcfg, self._ucfg, self._ocfg:
   232                 for n, p in c.items('paths'):
   233                 for n, p in c.items('paths'):
   233                     # Ignore sub-options.
   234                     # Ignore sub-options.
   234                     if ':' in n:
   235                     if ':' in n:
   235                         continue
   236                         continue