diff --git a/hgext/schemes.py b/hgext/schemes.py --- a/hgext/schemes.py +++ b/hgext/schemes.py @@ -93,6 +93,6 @@ def extsetup(ui): and os.path.exists('%s:\\' % scheme)): raise util.Abort(_('custom scheme %s:// conflicts with drive ' 'letter %s:\\\n') % (scheme, scheme.upper())) - hg.peerschemes[scheme] = ShortRepository(url, scheme, t) + hg.schemes[scheme] = ShortRepository(url, scheme, t) extensions.wrapfunction(util, 'hasdriveletter', hasdriveletter) diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -61,7 +61,7 @@ def parseurl(path, branches=None): u.fragment = None return str(u), (branch, branches or []) -peerschemes = { +schemes = { 'bundle': bundlerepo, 'file': _local, 'http': httprepo, @@ -73,7 +73,7 @@ peerschemes = { def _peerlookup(path): u = util.url(path) scheme = u.scheme or 'file' - thing = peerschemes.get(scheme) or peerschemes['file'] + thing = schemes.get(scheme) or schemes['file'] try: return thing(path) except TypeError: