changeset 49191 | 3f5e207f78be |
parent 49146 | 9b5334c1e499 |
child 49200 | 10b9f11daf15 |
49190:a1fce5003ff4 | 49191: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 |