localrepo: rename capability set to lower case.
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 14 Mar 2014 00:02:05 -0700
changeset 20776 d00c731f4637
parent 20775 982f13bef503
child 20777 77318d3c3b24
localrepo: rename capability set to lower case. This is not C and they are not even constant.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Mar 12 14:46:41 2014 -0700
+++ b/mercurial/localrepo.py	Fri Mar 14 00:02:05 2014 -0700
@@ -62,13 +62,13 @@
         return orig(repo.unfiltered(), *args, **kwargs)
     return wrapper
 
-MODERNCAPS = set(('lookup', 'branchmap', 'pushkey', 'known', 'getbundle'))
-LEGACYCAPS = MODERNCAPS.union(set(['changegroupsubset']))
+moderncaps = set(('lookup', 'branchmap', 'pushkey', 'known', 'getbundle'))
+legacycaps = moderncaps.union(set(['changegroupsubset']))
 
 class localpeer(peer.peerrepository):
     '''peer for a local repo; reflects only the most recent API'''
 
-    def __init__(self, repo, caps=MODERNCAPS):
+    def __init__(self, repo, caps=moderncaps):
         peer.peerrepository.__init__(self)
         self._repo = repo.filtered('served')
         self.ui = repo.ui
@@ -131,7 +131,7 @@
     restricted capabilities'''
 
     def __init__(self, repo):
-        localpeer.__init__(self, repo, caps=LEGACYCAPS)
+        localpeer.__init__(self, repo, caps=legacycaps)
 
     def branches(self, nodes):
         return self._repo.branches(nodes)