mercurial/ui.py
changeset 1938 36c6e4c3ff43
parent 1920 b7cc0f323a4c
parent 1921 acce3f7e1779
child 1951 696230e52e4d
equal deleted inserted replaced
1937:3f6be77eda58 1938:36c6e4c3ff43
    58                 raise util.Abort(_("Failed to parse %s\n%s") % (f, inst))
    58                 raise util.Abort(_("Failed to parse %s\n%s") % (f, inst))
    59         # translate paths relative to root (or home) into absolute paths
    59         # translate paths relative to root (or home) into absolute paths
    60         if root is None:
    60         if root is None:
    61             root = os.path.expanduser('~')
    61             root = os.path.expanduser('~')
    62         for name, path in self.configitems("paths"):
    62         for name, path in self.configitems("paths"):
    63             if path.find("://") == -1 and not os.path.isabs(path):
    63             if path and path.find("://") == -1 and not os.path.isabs(path):
    64                 self.cdata.set("paths", name, os.path.join(root, path))
    64                 self.cdata.set("paths", name, os.path.join(root, path))
    65 
    65 
    66     def setconfig(self, section, name, val):
    66     def setconfig(self, section, name, val):
    67         self.overlay[(section, name)] = val
    67         self.overlay[(section, name)] = val
    68 
    68