rust/hg-core/src/repo.rs
changeset 49136 3f5e207f78be
parent 49091 9b5334c1e499
child 49147 10b9f11daf15
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