diff rust/hg-cpython/src/dirstate/dirstate_map.rs @ 50222:ecd28d89c29e stable

dirstate-v2: add devel config option to control write behavior This will help us to write predictable tests checking behavior in each case.
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 28 Feb 2023 15:49:53 +0100
parents 1891086f6c7f
children 6cce0afc1454
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs	Fri Feb 24 18:21:54 2023 +0100
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs	Tue Feb 28 15:49:53 2023 +0100
@@ -254,6 +254,7 @@
         let rust_write_mode = match write_mode {
             0 => DirstateMapWriteMode::Auto,
             1 => DirstateMapWriteMode::ForceNewDataFile,
+            2 => DirstateMapWriteMode::ForceAppend,
             _ => DirstateMapWriteMode::Auto, // XXX should we error out?
         };
         let result = inner.pack_v2(rust_write_mode);