diff mercurial/debugcommands.py @ 41947:b74ef67573e5

manifestcache: actually honor --clear Before this change, the --clear flag was not clearing the on disk cache. (We also remove the extra verbosity when using --clear. Same as what we did for --add)
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 14 Mar 2019 09:12:46 +0000
parents 1e75311d78f7
children 1fe278aa4ad5
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Thu Mar 14 10:58:53 2019 +0000
+++ b/mercurial/debugcommands.py	Thu Mar 14 09:12:46 2019 +0000
@@ -1478,7 +1478,8 @@
     if opts.get(r'clear'):
         with repo.lock():
             cache = getcache()
-            cache.clear()
+            cache.clear(clear_persisted_data=True)
+            return
 
     if add:
         with repo.lock():