# HG changeset patch # User Pierre-Yves David # Date 2014-03-14 07:02:05 # Node ID d00c731f46372b236628c0ca38937d1ae078fac2 # Parent 982f13bef5031a7a893b9404b027fdc7540f9d86 localrepo: rename capability set to lower case. This is not C and they are not even constant. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -62,13 +62,13 @@ def unfilteredmethod(orig): 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 @@ class locallegacypeer(localpeer): 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)