comparison rust/hg-core/src/dirstate_tree/dirstate_map.rs @ 50863:264072107105

rust-status: error on non-existent files in file_set file_set here consists of the files that were explicitly specified on the command line. Erroring on them matches the behavior of Python status.
author Spencer Baugh <sbaugh@janestreet.com>
date Wed, 02 Aug 2023 10:21:18 -0400
parents a10d823a8e3d
children 532e74ad3ff6
comparison
equal deleted inserted replaced
50862:5efccea9cf38 50863:264072107105
575 } 575 }
576 } else { 576 } else {
577 return Ok(None); 577 return Ok(None);
578 } 578 }
579 } 579 }
580 }
581
582 pub fn has_node(
583 &self,
584 path: &HgPath,
585 ) -> Result<bool, DirstateV2ParseError> {
586 let node = self.get_node(path)?;
587 Ok(node.is_some())
580 } 588 }
581 589
582 /// Returns a mutable reference to the node at `path` if it exists 590 /// Returns a mutable reference to the node at `path` if it exists
583 /// 591 ///
584 /// `each_ancestor` is a callback that is called for each ancestor node 592 /// `each_ancestor` is a callback that is called for each ancestor node