diff rust/hg-core/src/repo.rs @ 49136:3f5e207f78be

rust: use `entry.tracked()` directly This is the new API Differential Revision: https://phab.mercurial-scm.org/D12534
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 12 Apr 2022 17:26:23 +0200
parents 9b5334c1e499
children 10b9f11daf15
line wrap: on
line diff
--- a/rust/hg-core/src/repo.rs	Tue Apr 12 17:25:38 2022 +0200
+++ b/rust/hg-core/src/repo.rs	Tue Apr 12 17:26:23 2022 +0200
@@ -401,7 +401,7 @@
 
     pub fn has_subrepos(&self) -> Result<bool, DirstateError> {
         if let Some(entry) = self.dirstate_map()?.get(HgPath::new(".hgsub"))? {
-            Ok(entry.state().is_tracked())
+            Ok(entry.tracked())
         } else {
             Ok(false)
         }