rust/hg-core/src/repo.rs
branchstable
changeset 49671 f5e4248e5bce
parent 49669 be019ac8c1e4
child 49679 1891086f6c7f
equal deleted inserted replaced
49670:6515d9a6592d 49671: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