changeset 20962:af4158b8876b

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 07 Apr 2014 11:45:50 -0700
parents 6c40ea34ecc1
children ffddabb8aa5d
files mercurial/statichttprepo.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):