Mercurial > public > mercurial-scm > hg
comparison mercurial/sshrepo.py @ 13827:f1823b9f073b
url: nuke some newly-introduced underbars in identifiers
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 31 Mar 2011 10:43:53 -0500 |
parents | d16894e29f91 |
children | 97ed99d1f419 |
comparison
equal
deleted
inserted
replaced
13826:e574207e3bcd | 13827:f1823b9f073b |
---|---|
21 class sshrepository(wireproto.wirerepository): | 21 class sshrepository(wireproto.wirerepository): |
22 def __init__(self, ui, path, create=0): | 22 def __init__(self, ui, path, create=0): |
23 self._url = path | 23 self._url = path |
24 self.ui = ui | 24 self.ui = ui |
25 | 25 |
26 u = url.url(path, parse_query=False, parse_fragment=False) | 26 u = url.url(path, parsequery=False, parsefragment=False) |
27 if u.scheme != 'ssh' or not u.host or u.path is None: | 27 if u.scheme != 'ssh' or not u.host or u.path is None: |
28 self._abort(error.RepoError(_("couldn't parse location %s") % path)) | 28 self._abort(error.RepoError(_("couldn't parse location %s") % path)) |
29 | 29 |
30 self.user = u.user | 30 self.user = u.user |
31 if u.passwd is not None: | 31 if u.passwd is not None: |