Show More
@@ -246,6 +246,11 b' impl Repo {' | |||
|
246 | 246 | self.requirements.contains(requirements::NARROW_REQUIREMENT) |
|
247 | 247 | } |
|
248 | 248 | |
|
249 | pub fn has_nodemap(&self) -> bool { | |
|
250 | self.requirements | |
|
251 | .contains(requirements::NODEMAP_REQUIREMENT) | |
|
252 | } | |
|
253 | ||
|
249 | 254 | fn dirstate_file_contents(&self) -> Result<Vec<u8>, HgError> { |
|
250 | 255 | Ok(self |
|
251 | 256 | .hg_vfs() |
@@ -345,10 +350,7 b' impl Repo {' | |||
|
345 | 350 | } |
|
346 | 351 | |
|
347 | 352 | fn new_changelog(&self) -> Result<Changelog, HgError> { |
|
348 | let use_nodemap = self | |
|
349 | .requirements | |
|
350 | .contains(requirements::NODEMAP_REQUIREMENT); | |
|
351 | Changelog::open(&self.store_vfs(), use_nodemap) | |
|
353 | Changelog::open(&self.store_vfs(), self.has_nodemap()) | |
|
352 | 354 | } |
|
353 | 355 | |
|
354 | 356 | pub fn changelog(&self) -> Result<Ref<Changelog>, HgError> { |
@@ -360,10 +362,7 b' impl Repo {' | |||
|
360 | 362 | } |
|
361 | 363 | |
|
362 | 364 | fn new_manifestlog(&self) -> Result<Manifestlog, HgError> { |
|
363 | let use_nodemap = self | |
|
364 | .requirements | |
|
365 | .contains(requirements::NODEMAP_REQUIREMENT); | |
|
366 | Manifestlog::open(&self.store_vfs(), use_nodemap) | |
|
365 | Manifestlog::open(&self.store_vfs(), self.has_nodemap()) | |
|
367 | 366 | } |
|
368 | 367 | |
|
369 | 368 | pub fn manifestlog(&self) -> Result<Ref<Manifestlog>, HgError> { |
General Comments 0
You need to be logged in to leave comments.
Login now