statichttp: respect localrepo _restrictcapabilities
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 07 Apr 2014 11:45:50 -0700
changeset 20962 af4158b8876b
parent 20961 6c40ea34ecc1
child 20963 ffddabb8aa5d
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.
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):