Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
49135:a1fce5003ff4 | 49136:3f5e207f78be |
---|---|
399 ) | 399 ) |
400 } | 400 } |
401 | 401 |
402 pub fn has_subrepos(&self) -> Result<bool, DirstateError> { | 402 pub fn has_subrepos(&self) -> Result<bool, DirstateError> { |
403 if let Some(entry) = self.dirstate_map()?.get(HgPath::new(".hgsub"))? { | 403 if let Some(entry) = self.dirstate_map()?.get(HgPath::new(".hgsub"))? { |
404 Ok(entry.state().is_tracked()) | 404 Ok(entry.tracked()) |
405 } else { | 405 } else { |
406 Ok(false) | 406 Ok(false) |
407 } | 407 } |
408 } | 408 } |
409 | 409 |