# HG changeset patch # User Matt Mackall # Date 2011-06-13 21:25:18 # Node ID 6e631c24c6d9ba94c482c0b3ca6946aa4fcb8300 # Parent 9f1139cf5c76ed7ce3bb6bf7d694fe03bbfa5097 hg: move peerschemes back to schemes This will avoid breaking things with extensions until peers are fully separated from repos. 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: