mercurial/utils/urlutil.py
changeset 46928 93c224dc099b
parent 46917 efadec3ea8e2
child 46934 ebb13f9a9ba8
equal deleted inserted replaced
46927:cdbef062c6c8 46928:93c224dc099b
   641         if self.url.scheme == b'path':
   641         if self.url.scheme == b'path':
   642             assert self.url.path is None
   642             assert self.url.path is None
   643             try:
   643             try:
   644                 subpath = paths[self.url.host]
   644                 subpath = paths[self.url.host]
   645             except KeyError:
   645             except KeyError:
   646                 m = _('cannot use `%s`, "%s" is not a known path')
   646                 m = _(b'cannot use `%s`, "%s" is not a known path')
   647                 m %= (self.rawloc, self.url.host)
   647                 m %= (self.rawloc, self.url.host)
   648                 raise error.Abort(m)
   648                 raise error.Abort(m)
   649             if subpath.raw_url.scheme == b'path':
   649             if subpath.raw_url.scheme == b'path':
   650                 m = _('cannot use `%s`, "%s" is also define as a `path://`')
   650                 m = _(b'cannot use `%s`, "%s" is also defined as a `path://`')
   651                 m %= (self.rawloc, self.url.host)
   651                 m %= (self.rawloc, self.url.host)
   652                 raise error.Abort(m)
   652                 raise error.Abort(m)
   653             self.url = subpath.url
   653             self.url = subpath.url
   654             self.rawloc = subpath.rawloc
   654             self.rawloc = subpath.rawloc
   655             self.loc = subpath.loc
   655             self.loc = subpath.loc