activepath: guard against non-string rpath from hgsvn

This commit is contained in:
Ryan McElroy 2015-03-13 18:10:49 -07:00
parent 36afdfef47
commit 2d8819a1ce

View File

@ -739,6 +739,9 @@ def activepath(ui, remote):
except AttributeError: except AttributeError:
uri = url.getauthinfo(uri)[0] uri = url.getauthinfo(uri)[0]
uri = uri.rstrip('/') uri = uri.rstrip('/')
# guard against hgsubversion nonsense
if not isinstance(rpath, basestring):
continue
rpath = rpath.rstrip('/') rpath = rpath.rstrip('/')
if uri == rpath: if uri == rpath:
realpath = path realpath = path