manifestcache: test that adding the same entry twice do not duplicates it
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 14 Mar 2019 10:53:28 +0000
changeset 41949 99eb9f269a5a
parent 41948 1e75311d78f7
child 41950 7436653d8542
manifestcache: test that adding the same entry twice do not duplicates it Simple sanity check.
tests/test-manifest.t
--- a/tests/test-manifest.t	Thu Mar 14 09:11:41 2019 +0000
+++ b/tests/test-manifest.t	Thu Mar 14 10:53:28 2019 +0000
@@ -116,3 +116,11 @@
   cache contains 1 manifest entries, in order of most to least recent:
   id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
   total cache data size 157 bytes, on-disk 157 bytes
+
+Check we don't duplicated entry (added from the debug command)
+
+  $ hg debugmanifestfulltextcache --add 1e01206b1d2f72bd55f2a33fa8ccad74144825b7
+  $ hg debugmanifestfulltextcache
+  cache contains 1 manifest entries, in order of most to least recent:
+  id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
+  total cache data size 157 bytes, on-disk 157 bytes