mercurial/util.py
changeset 18929 0080d0d1fcb3
parent 18911 451eb1c27c1b
child 18930 9dd5a4815c6f
equal deleted inserted replaced
18928:45348b4df46e 18929:0080d0d1fcb3
  1692             # // is required to specify a host/authority
  1692             # // is required to specify a host/authority
  1693             if path and path.startswith('//'):
  1693             if path and path.startswith('//'):
  1694                 parts = path[2:].split('/', 1)
  1694                 parts = path[2:].split('/', 1)
  1695                 if len(parts) > 1:
  1695                 if len(parts) > 1:
  1696                     self.host, path = parts
  1696                     self.host, path = parts
  1697                     path = path
       
  1698                 else:
  1697                 else:
  1699                     self.host = parts[0]
  1698                     self.host = parts[0]
  1700                     path = None
  1699                     path = None
  1701                 if not self.host:
  1700                 if not self.host:
  1702                     self.host = None
  1701                     self.host = None