mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
activepath: remove unneeded, confusing compatibility hack
This commit is contained in:
parent
94511b0683
commit
3dbe2dd5e1
@ -837,12 +837,9 @@ def activepath(ui, remote):
|
||||
else:
|
||||
if uri.startswith('http'):
|
||||
try:
|
||||
uri = url.url(uri).authinfo()[0]
|
||||
uri = util.url(uri).authinfo()[0]
|
||||
except AttributeError:
|
||||
try:
|
||||
uri = util.url(uri).authinfo()[0]
|
||||
except AttributeError:
|
||||
uri = url.getauthinfo(uri)[0]
|
||||
uri = url.getauthinfo(uri)[0]
|
||||
uri = uri.rstrip('/')
|
||||
# guard against hgsubversion nonsense
|
||||
if not isinstance(rpath, basestring):
|
||||
|
Loading…
Reference in New Issue
Block a user