Mercurial > public > mercurial-scm > hg-stable
diff rust/rhg/src/commands/debugignorerhg.rs @ 49550:363923bd51cd stable
dirstate-v2: hash the source of the ignore patterns as well
Fixes the test introduced in the last changeset. This caused the hash
to change, which means that the check in the test had to be adapted.
Since this hash is only done as a caching mechanism, invalidation does
not pose any backwards compatibility issues.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 02 Nov 2022 12:05:34 +0100 |
parents | 6d4daf51283c |
children | 37bc3edef76f |
line wrap: on
line diff
--- a/rust/rhg/src/commands/debugignorerhg.rs Wed Nov 02 15:24:39 2022 +0100 +++ b/rust/rhg/src/commands/debugignorerhg.rs Wed Nov 02 12:05:34 2022 +0100 @@ -25,7 +25,7 @@ let (ignore_matcher, warnings) = get_ignore_matcher( vec![ignore_file], &repo.working_directory_path().to_owned(), - &mut |_pattern_bytes| (), + &mut |_source, _pattern_bytes| (), ) .map_err(|e| StatusError::from(e))?;