rust/hg-core/src/requirements.rs
changeset 47952 9cd35c8c6044
parent 47374 bd88b6bfd8da
child 48295 bf11ff22a9af
equal deleted inserted replaced
47951:cff41e168c25 47952:9cd35c8c6044
     1 use crate::errors::{HgError, HgResultExt};
     1 use crate::errors::{HgError, HgResultExt};
     2 use crate::repo::{Repo, Vfs};
     2 use crate::repo::Repo;
     3 use crate::utils::join_display;
     3 use crate::utils::join_display;
       
     4 use crate::vfs::Vfs;
     4 use std::collections::HashSet;
     5 use std::collections::HashSet;
     5 
     6 
     6 fn parse(bytes: &[u8]) -> Result<HashSet<String>, HgError> {
     7 fn parse(bytes: &[u8]) -> Result<HashSet<String>, HgError> {
     7     // The Python code reading this file uses `str.splitlines`
     8     // The Python code reading this file uses `str.splitlines`
     8     // which looks for a number of line separators (even including a couple of
     9     // which looks for a number of line separators (even including a couple of