Mercurial > public > mercurial-scm > hg
comparison rust/hg-cpython/src/parsers.rs @ 42802:2e1f74cc3350
rust-dirstate: split DirsMultiset constructor per input type
Since skip_state only applies to dirstate, it doesn't make sense to unify
these constructors and dispatch by enum.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Aug 2019 18:25:29 +0900 |
parents | 5399532510ae |
children | 7a01778bc7b7 |
comparison
equal
deleted
inserted
replaced
42801:1a535313ad1b | 42802:2e1f74cc3350 |
---|---|
13 use cpython::{ | 13 use cpython::{ |
14 exc, PyBytes, PyDict, PyErr, PyInt, PyModule, PyResult, PyTuple, Python, | 14 exc, PyBytes, PyDict, PyErr, PyInt, PyModule, PyResult, PyTuple, Python, |
15 PythonObject, ToPyObject, | 15 PythonObject, ToPyObject, |
16 }; | 16 }; |
17 use hg::{ | 17 use hg::{ |
18 pack_dirstate, parse_dirstate, DirstateEntry, | 18 pack_dirstate, parse_dirstate, DirstateEntry, DirstatePackError, |
19 DirstatePackError, DirstateParents, DirstateParseError, PARENT_SIZE, | 19 DirstateParents, DirstateParseError, PARENT_SIZE, |
20 }; | 20 }; |
21 use std::collections::HashMap; | 21 use std::collections::HashMap; |
22 use std::convert::TryInto; | 22 use std::convert::TryInto; |
23 | 23 |
24 use libc::c_char; | 24 use libc::c_char; |