# HG changeset patch # User Pierre-Yves David # Date 1396896350 25200 # Node ID af4158b8876ba11286467a8fa08fd19baf9e5a63 # Parent 6c40ea34ecc19b25d3670783ae059c557a0e7f30 statichttp: respect localrepo _restrictcapabilities The static http repository was doing his own filtering of capability ignoring the filtering done in the local repo main class. This led to static http using the current draft of bundle2. We now apply both. diff -r 6c40ea34ecc1 -r af4158b8876b mercurial/statichttprepo.py --- a/mercurial/statichttprepo.py Mon Apr 07 23:10:20 2014 +0200 +++ b/mercurial/statichttprepo.py Mon Apr 07 11:45:50 2014 -0700 @@ -143,6 +143,7 @@ self.decodepats = None def _restrictcapabilities(self, caps): + caps = super(statichttprepository, self)._restrictcapabilities(caps) return caps.difference(["pushkey"]) def url(self):