aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/snapshot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/snapshot.rs')
-rw-r--r--src/remake/snapshot.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/remake/snapshot.rs b/src/remake/snapshot.rs
index 7938b53..ee0a2cd 100644
--- a/src/remake/snapshot.rs
+++ b/src/remake/snapshot.rs
@@ -308,6 +308,8 @@ pub(crate) fn build(
{
store::copy_path(&base, &mut target, &meta::path(&[key.as_str()]))?;
}
+ // What the kind does to it (a strict remake keeps only what its manifest names).
+ kind.protocol(&base, params.content, &mut target)?;
let mut base_heads: Vec<String> = params.base_heads.iter().map(|h| h.to_string()).collect();
base_heads.sort();
@@ -369,7 +371,7 @@ fn snapshot_actor(remake_id: &str, generation: u64) -> ActorId {
/// Rebuilds every object with sorted keys, so the result is the same whichever key
/// order serde_json happens to use (it keeps insertion order with `preserve_order`).
-pub(super) fn canonical(value: JsonValue) -> JsonValue {
+pub(crate) fn canonical(value: JsonValue) -> JsonValue {
match value {
JsonValue::Object(map) => {
let sorted: BTreeMap<String, JsonValue> = map