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:
|
else:
|
||||||
if uri.startswith('http'):
|
if uri.startswith('http'):
|
||||||
try:
|
try:
|
||||||
uri = url.url(uri).authinfo()[0]
|
uri = util.url(uri).authinfo()[0]
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
try:
|
uri = url.getauthinfo(uri)[0]
|
||||||
uri = util.url(uri).authinfo()[0]
|
|
||||||
except AttributeError:
|
|
||||||
uri = url.getauthinfo(uri)[0]
|
|
||||||
uri = uri.rstrip('/')
|
uri = uri.rstrip('/')
|
||||||
# guard against hgsubversion nonsense
|
# guard against hgsubversion nonsense
|
||||||
if not isinstance(rpath, basestring):
|
if not isinstance(rpath, basestring):
|
||||||
|
Loading…
Reference in New Issue
Block a user