[PATCH 1 of 5] statichttprepo: do not try to write caches

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Aug 5 23:02:53 UTC 2016


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1470404889 -7200
#      Fri Aug 05 15:48:09 2016 +0200
# Node ID 4a7a67439e3effbf57012c841f7686e69422e8aa
# Parent  834b8ac4a7587562dccb527b28606ecf5532e883
# EXP-Topic vfsward
statichttprepo: do not try to write caches

The static http repository are read only, there is no hope in any cache
writing attempt.

diff -r 834b8ac4a758 -r 4a7a67439e3e mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py	Fri Aug 05 13:44:17 2016 +0200
+++ b/mercurial/statichttprepo.py	Fri Aug 05 15:48:09 2016 +0200
@@ -181,6 +181,9 @@ class statichttprepository(localrepo.loc
     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'))


More information about the Mercurial-devel mailing list