hg: move peerschemes back to schemes
authorMatt Mackall <mpm@selenic.com>
Mon, 13 Jun 2011 16:25:18 -0500
changeset 14606 6e631c24c6d9
parent 14605 9f1139cf5c76
child 14607 bd1acea552ff
hg: move peerschemes back to schemes This will avoid breaking things with extensions until peers are fully separated from repos.
hgext/schemes.py
mercurial/hg.py
--- a/hgext/schemes.py	Mon Jun 13 14:53:23 2011 -0500
+++ b/hgext/schemes.py	Mon Jun 13 16:25:18 2011 -0500
@@ -93,6 +93,6 @@
             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)
--- a/mercurial/hg.py	Mon Jun 13 14:53:23 2011 -0500
+++ b/mercurial/hg.py	Mon Jun 13 16:25:18 2011 -0500
@@ -61,7 +61,7 @@
         u.fragment = None
     return str(u), (branch, branches or [])
 
-peerschemes = {
+schemes = {
     'bundle': bundlerepo,
     'file': _local,
     'http': httprepo,
@@ -73,7 +73,7 @@
 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: