diff tests/test-discovery-obshashrange-cache.t @ 6338:a55b9b917a08 stable

evolve: make _obshashcache slightly more tolerant to fs issues (issue6246) It will fall back to memory db when there are problems opening the persistent cache file.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 01 Dec 2022 17:09:47 +0400
parents e97fbded40a5
children 804c55a6a423
line wrap: on
line diff
--- a/tests/test-discovery-obshashrange-cache.t	Thu Dec 01 16:29:56 2022 +0400
+++ b/tests/test-discovery-obshashrange-cache.t	Thu Dec 01 17:09:47 2022 +0400
@@ -156,6 +156,21 @@
   no changes found
   [1]
 
+suddenly cache is inaccessible, check that the push still succeeds (issue6246)
+
+  $ chmod 0000 server/.hg/cache/*.sqlite
+
+  $ hg -R main push ssh://user@dummy/server
+  pushing to ssh://user@dummy/server
+  searching for changes
+  OBSEXC: computing relevant nodes
+  OBSEXC: looking for common markers in 8 nodes
+  OBSEXC: markers already in sync
+  no changes found
+  [1]
+
+  $ chmod 0644 server/.hg/cache/*.sqlite
+
 client cache is warm
 
   $ f -s main/.hg/cache/evoext*