statichttprepo: do not try to write caches
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 05 Aug 2016 15:48:09 +0200
changeset 29738 c1696430254f
parent 29737 ae9a4d6a8d51
child 29739 84a8de5ac901
statichttprepo: do not try to write caches The static http repository are read only, there is no hope in any cache writing attempt.
mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py	Sat Aug 06 22:24:33 2016 +0900
+++ b/mercurial/statichttprepo.py	Fri Aug 05 15:48:09 2016 +0200
@@ -181,6 +181,9 @@
     def lock(self, wait=True):
         raise error.Abort(_('cannot lock static-http repository'))
 
+    def _writecaches(self):
+        pass # statichttprepository are read only
+
 def instance(ui, path, create):
     if create:
         raise error.Abort(_('cannot create new static-http repository'))