Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/repo.rs @ 50211:f5e4248e5bce stable
dirstate: add some debug output when writing the dirstate
This helps debugging Mercurial behavior in the dirstate-v2 case.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 28 Feb 2023 00:04:32 +0100 |
parents | be019ac8c1e4 |
children | 1891086f6c7f |
comparison
equal
deleted
inserted
replaced
50210:6515d9a6592d | 50211:f5e4248e5bce |
---|---|
479 // revlog.py talks about a Solaris bug, but we also saw some ZFS | 479 // revlog.py talks about a Solaris bug, but we also saw some ZFS |
480 // bug: https://github.com/openzfs/zfs/pull/3124, | 480 // bug: https://github.com/openzfs/zfs/pull/3124, |
481 // https://github.com/openzfs/zfs/issues/13370 | 481 // https://github.com/openzfs/zfs/issues/13370 |
482 // | 482 // |
483 if !append { | 483 if !append { |
484 log::trace!("creating a new dirstate data file"); | |
484 options.create_new(true); | 485 options.create_new(true); |
486 } else { | |
487 log::trace!("appending to the dirstate data file"); | |
485 } | 488 } |
486 | 489 |
487 let data_size = (|| { | 490 let data_size = (|| { |
488 // TODO: loop and try another random ID if !append and this | 491 // TODO: loop and try another random ID if !append and this |
489 // returns `ErrorKind::AlreadyExists`? Collision chance of two | 492 // returns `ErrorKind::AlreadyExists`? Collision chance of two |