# HG changeset patch # User Pierre-Yves David # Date 1394780525 25200 # Node ID d00c731f46372b236628c0ca38937d1ae078fac2 # Parent 982f13bef5031a7a893b9404b027fdc7540f9d86 localrepo: rename capability set to lower case. This is not C and they are not even constant. diff -r 982f13bef503 -r d00c731f4637 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)