mercurial/ui.py
changeset 46907 ffd3e823a7e5
parent 46906 33524c46a092
child 46965 b03527bdac01
equal deleted inserted replaced
46906:33524c46a092 46907:ffd3e823a7e5
   557                             _(b"(deprecated '%%' in path %s=%s from %s)\n")
   557                             _(b"(deprecated '%%' in path %s=%s from %s)\n")
   558                             % (n, p, s)
   558                             % (n, p, s)
   559                         )
   559                         )
   560                         p = p.replace(b'%%', b'%')
   560                         p = p.replace(b'%%', b'%')
   561                     p = util.expandpath(p)
   561                     p = util.expandpath(p)
   562                     if not util.hasscheme(p) and not os.path.isabs(p):
   562                     if not urlutil.hasscheme(p) and not os.path.isabs(p):
   563                         p = os.path.normpath(os.path.join(root, p))
   563                         p = os.path.normpath(os.path.join(root, p))
   564                     c.alter(b"paths", n, p)
   564                     c.alter(b"paths", n, p)
   565 
   565 
   566         if section in (None, b'ui'):
   566         if section in (None, b'ui'):
   567             # update ui options
   567             # update ui options