statichttprepo: do not try to write caches
The static http repository are read only, there is no hope in any cache
writing attempt.
--- 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'))