branch | stable |
changeset 15609 | 8f4bad72d8b1 |
parent 14606 | 6e631c24c6d9 |
child 16743 | 38caf405d010 |
--- a/hgext/schemes.py Fri Dec 02 21:38:57 2011 -0200 +++ b/hgext/schemes.py Sun Dec 04 18:22:25 2011 +0100 @@ -72,9 +72,10 @@ return hg._peerlookup(url).instance(ui, url, create) def hasdriveletter(orig, path): - for scheme in schemes: - if path.startswith(scheme + ':'): - return False + if path: + for scheme in schemes: + if path.startswith(scheme + ':'): + return False return orig(path) schemes = {