diff tests/test-manifest.t @ 41958:1fe278aa4ad5

manifestcache: support multiple cache addition in one debug command run This is more practical.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 15 Mar 2019 13:52:56 +0000
parents b74ef67573e5
children 7d417ab1eda9
line wrap: on
line diff
--- a/tests/test-manifest.t	Thu Mar 14 18:11:22 2019 -0700
+++ b/tests/test-manifest.t	Fri Mar 15 13:52:56 2019 +0000
@@ -148,3 +148,13 @@
   $ hg debugmanifestfulltextcache --clear
   $ hg debugmanifestfulltextcache
   cache empty
+
+Check adding multiple entry in one go:
+
+  $ hg debugmanifestfulltextcache --add fce2a30dedad1eef4da95ca1dc0004157aa527cf  --add 1e01206b1d2f72bd55f2a33fa8ccad74144825b7
+  $ hg debugmanifestfulltextcache
+  cache contains 2 manifest entries, in order of most to least recent:
+  id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
+  id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes
+  total cache data size 268 bytes, on-disk 268 bytes
+  $ hg debugmanifestfulltextcache --clear