# HG changeset patch # User Simon Sapin # Date 1617716941 -7200 # Node ID 623c8e4ddc6d5af104a0dbb2255bf25076d5fbc7 # Parent 9c6b458a08e1dfd3231803fb3b87c0711989f39f rust: Add doc-comments to DirstateStatus fields Differential Revision: https://phab.mercurial-scm.org/D10495 diff -r 9c6b458a08e1 -r 623c8e4ddc6d rust/hg-core/src/dirstate/status.rs --- a/rust/hg-core/src/dirstate/status.rs Tue Apr 06 15:14:19 2021 +0200 +++ b/rust/hg-core/src/dirstate/status.rs Tue Apr 06 15:49:01 2021 +0200 @@ -256,18 +256,39 @@ #[derive(Debug)] pub struct DirstateStatus<'a> { + /// Tracked files whose contents have changed since the parent revision pub modified: Vec>, + + /// Newly-tracked files that were not present in the parent pub added: Vec>, + + /// Previously-tracked files that have been (re)moved with an hg command pub removed: Vec>, + + /// (Still) tracked files that are missing, (re)moved with an non-hg + /// command pub deleted: Vec>, + + /// Tracked files that are up to date with the parent. + /// Only pupulated if `StatusOptions::list_clean` is true. pub clean: Vec>, + + /// Files in the working directory that are ignored with `.hgignore`. + /// Only pupulated if `StatusOptions::list_ignored` is true. pub ignored: Vec>, + + /// Files in the working directory that are neither tracked nor ignored. + /// Only pupulated if `StatusOptions::list_unknown` is true. pub unknown: Vec>, + + /// Was explicitly matched but cannot be found/accessed pub bad: Vec<(HgPathCow<'a>, BadMatch)>, + /// Either clean or modified, but we can’t tell from filesystem metadata /// alone. The file contents need to be read and compared with that in /// the parent. pub unsure: Vec>, + /// Only filled if `collect_traversed_dirs` is `true` pub traversed: Vec, }