changeset 29738:c1696430254f

statichttprepo: do not try to write caches The static http repository are read only, there is no hope in any cache writing attempt.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 05 Aug 2016 15:48:09 +0200
parents ae9a4d6a8d51
children 84a8de5ac901
files mercurial/statichttprepo.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'))