Patchwork [6,of,8,"] manifestcache: adding a second distinct entry

login
register
mail settings
Submitter Pierre-Yves David
Date March 15, 2019, 11:43 a.m.
Message ID <87c06c6f7e62897a14bd.1552650208@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/39265/
State Accepted
Headers show

Comments

Pierre-Yves David - March 15, 2019, 11:43 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1552554747 0
#      Thu Mar 14 09:12:27 2019 +0000
# Node ID 87c06c6f7e62897a14bd4e2291d0ff805f689848
# Parent  9ff234990740cd884689f1252dc6e7ec487b4c10
# EXP-Topic manifestcache
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 87c06c6f7e62
manifestcache: adding a second distinct entry

Let makes sure the cache can hold multiple value.

Patch

diff --git a/tests/test-manifest.t b/tests/test-manifest.t
--- a/tests/test-manifest.t
+++ b/tests/test-manifest.t
@@ -124,3 +124,12 @@  Check we don't duplicated entry (added f
   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
+
+Adding a second entry
+
+  $ hg debugmanifestfulltextcache --add fce2a30dedad1eef4da95ca1dc0004157aa527cf
+  $ hg debugmanifestfulltextcache
+  cache contains 2 manifest entries, in order of most to least recent:
+  id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes
+  id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
+  total cache data size 268 bytes, on-disk 268 bytes