Mercurial > hg
comparison rust/hg-core/src/matchers.rs @ 44524:483fce658e43
rust-status: refactor options into a `StatusOptions` struct
Differential Revision: https://phab.mercurial-scm.org/D8086
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 06 Feb 2020 14:25:59 +0100 |
parents | c697638e0e91 |
children | d880805d5442 |
comparison
equal
deleted
inserted
replaced
44523:0d97bcb3cee9 | 44524:483fce658e43 |
---|---|
666 parents.insert(HgPathBuf::new()); | 666 parents.insert(HgPathBuf::new()); |
667 parents.insert(HgPathBuf::from_bytes(b"g")); | 667 parents.insert(HgPathBuf::from_bytes(b"g")); |
668 | 668 |
669 assert_eq!( | 669 assert_eq!( |
670 roots_dirs_and_parents(&pats).unwrap(), | 670 roots_dirs_and_parents(&pats).unwrap(), |
671 RootsDirsAndParents {roots, dirs, parents} | 671 RootsDirsAndParents { |
672 roots, | |
673 dirs, | |
674 parents | |
675 } | |
672 ); | 676 ); |
673 } | 677 } |
674 | 678 |
675 #[test] | 679 #[test] |
676 fn test_filematcher_visit_children_set() { | 680 fn test_filematcher_visit_children_set() { |