Fixing the working copy timing test

pmeunier
Jan 25, 2026, 2:47 PM
7E6A6PZO7MSTE2BSGGURT3Y2LXDNWMXXJ67Q2OZWCSOWBPEKLXKQC

Dependencies

  • [2] KVCXCDRM Fixing warnings with Rust 1.57 + cleanup
  • [3] 7FP2DFNX Optimisation: avoid re-checking the entire repo when recording after an unrecord
  • [4] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [5] X7OHUPL5 Fixing a bug in unrecord, and fixing the tests
  • [6] I24UEJQL Various post-fire fixes
  • [7] MOPABMFW Fixing a deadlock in working_copy::memory (used only in tests for now)
  • [8] RRCSHAYZ Formatting
  • [9] FXEDPLRI Resurrecting tests, and type cleanup (no need for Arc<RwLock<…>> anymore)
  • [10] LPM4PBYJ More precise API for working copy in record and output
  • [11] 4UY2WBBP Adding a "Sink" working copy and avoid outputting ignored files

Change contents

  • replacement in libpijul/src/working_copy/mod.rs at line 51
    [3.1098][3.1098:1189]()
    fn touch(&self, _name: &str, time: std::time::SystemTime) -> Result<(), Self::Error> {
    [3.1098]
    [3.1189]
    fn touch(&self, _name: &str, _time: std::time::SystemTime) -> Result<(), Self::Error> {
  • edit in libpijul/src/working_copy/memory.rs at line 110
    [4.25672]
    [4.25672]
    debug!("add_inode {:?} {:?}", last, inode);
  • replacement in libpijul/src/working_copy/memory.rs at line 247
    [2.291][2.291:329]()
    _ => Ok(m.last_modified),
    [2.291]
    [2.329]
    _ => {
    debug!("modified_time not found {:?}", file);
    Ok(m.last_modified)
    }
  • replacement in libpijul/src/working_copy/memory.rs at line 297
    [4.26787][4.207567:207623](),[4.207567][4.207567:207623]()
    Some(Inode::File { ref mut meta, .. }) => {
    [4.26787]
    [4.237]
    Some(Inode::File {
    ref mut meta,
    ref mut last_modified,
    ..
    }) => {
    *last_modified = SystemTime::now();
  • replacement in libpijul/src/working_copy/memory.rs at line 305
    [4.207710][4.207710:207771]()
    Some(Inode::Directory { ref mut meta, .. }) => {
    [4.207710]
    [4.319]
    Some(Inode::Directory {
    ref mut meta,
    ref mut last_modified,
    ..
    }) => {
    *last_modified = SystemTime::now();
  • replacement in libpijul/src/working_copy/memory.rs at line 323
    [4.538][4.538:575]()
    ref mut contents, ..
    [4.538]
    [4.575]
    ref mut contents,
    ref mut last_modified,
    ..
  • edit in libpijul/src/working_copy/memory.rs at line 328
    [4.607]
    [4.579]
    *last_modified = SystemTime::now();
  • edit in libpijul/src/working_copy/memory.rs at line 340
    [4.751]
    [4.751]
    debug!("add_inode {:?}", last_modified);