Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statichttprepo.py @ 13819:d16894e29f91
httprepo/sshrepo: use url.url
Like the previous patch to getauthinfo(), this also makes
username/password parsing more forgiving for SSH URLs.
This also opens up the possibility of allowing non-numeric ports,
since the URL parser has no problem handling them.
Related issues:
- issue851: @ in password in http url
- issue2055: nonnumeric port bug with https protocol
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Wed, 30 Mar 2011 20:01:35 -0700 |
parents | b4f5f76386f2 |
children | 924c82157d46 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Wed Mar 30 20:01:34 2011 -0700 +++ b/mercurial/statichttprepo.py Wed Mar 30 20:01:35 2011 -0700 @@ -85,7 +85,8 @@ self.ui = ui self.root = path - self.path, authinfo = url.getauthinfo(path.rstrip('/') + "/.hg") + u = url.url(path.rstrip('/') + "/.hg") + self.path, authinfo = u.authinfo() opener = build_opener(ui, authinfo) self.opener = opener(self.path)