diff mercurial/statichttprepo.py @ 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 6bb9de1e4d16
children 72319005f5fb
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):