dirstate-v2: Make more APIs fallible, returning Result
When parsing becomes lazy, parse error will potentially happen in more places. This propagates such errors to callers. Differential Revision: https://phab.mercurial-scm.org/D10749
Showing
- rust/hg-core/src/dirstate.rs 12 additions, 4 deletionsrust/hg-core/src/dirstate.rs
- rust/hg-core/src/dirstate/dirs_multiset.rs 28 additions, 25 deletionsrust/hg-core/src/dirstate/dirs_multiset.rs
- rust/hg-core/src/dirstate/dirstate_map.rs 11 additions, 11 deletionsrust/hg-core/src/dirstate/dirstate_map.rs
- rust/hg-core/src/dirstate/parsers.rs 7 additions, 2 deletionsrust/hg-core/src/dirstate/parsers.rs
- rust/hg-core/src/dirstate/status.rs 6 additions, 0 deletionsrust/hg-core/src/dirstate/status.rs
- rust/hg-core/src/dirstate_tree/dirstate_map.rs 262 additions, 126 deletionsrust/hg-core/src/dirstate_tree/dirstate_map.rs
- rust/hg-core/src/dirstate_tree/dispatch.rs 114 additions, 61 deletionsrust/hg-core/src/dirstate_tree/dispatch.rs
- rust/hg-core/src/dirstate_tree/on_disk.rs 7 additions, 4 deletionsrust/hg-core/src/dirstate_tree/on_disk.rs
- rust/hg-core/src/dirstate_tree/status.rs 44 additions, 30 deletionsrust/hg-core/src/dirstate_tree/status.rs
- rust/hg-core/src/lib.rs 9 additions, 0 deletionsrust/hg-core/src/lib.rs
- rust/hg-cpython/src/dirstate/copymap.rs 7 additions, 4 deletionsrust/hg-cpython/src/dirstate/copymap.rs
- rust/hg-cpython/src/dirstate/dirs_multiset.rs 4 additions, 3 deletionsrust/hg-cpython/src/dirstate/dirs_multiset.rs
- rust/hg-cpython/src/dirstate/dirstate_map.rs 66 additions, 40 deletionsrust/hg-cpython/src/dirstate/dirstate_map.rs
- rust/hg-cpython/src/dirstate/dispatch.rs 49 additions, 23 deletionsrust/hg-cpython/src/dirstate/dispatch.rs
- rust/hg-cpython/src/dirstate/non_normal_entries.rs 10 additions, 3 deletionsrust/hg-cpython/src/dirstate/non_normal_entries.rs
Loading
Please register or sign in to comment