rust/hg-core/src/repo.rs
changeset 52182 bd8081e9fd62
parent 52171 7be39c5110c9
equal deleted inserted replaced
52181:3d797007905d 52182:bd8081e9fd62
     1 use crate::changelog::Changelog;
       
     2 use crate::config::{Config, ConfigError, ConfigParseError};
     1 use crate::config::{Config, ConfigError, ConfigParseError};
     3 use crate::dirstate::DirstateParents;
     2 use crate::dirstate::DirstateParents;
     4 use crate::dirstate_tree::dirstate_map::{
     3 use crate::dirstate_tree::dirstate_map::{
     5     DirstateIdentity, DirstateMapWriteMode,
     4     DirstateIdentity, DirstateMapWriteMode,
     6 };
     5 };
     7 use crate::dirstate_tree::on_disk::Docket as DirstateDocket;
     6 use crate::dirstate_tree::on_disk::Docket as DirstateDocket;
     8 use crate::dirstate_tree::owning::OwningDirstateMap;
     7 use crate::dirstate_tree::owning::OwningDirstateMap;
     9 use crate::errors::HgResultExt;
     8 use crate::errors::HgResultExt;
    10 use crate::errors::{HgError, IoResultExt};
     9 use crate::errors::{HgError, IoResultExt};
    11 use crate::lock::{try_with_lock_no_wait, LockError};
    10 use crate::lock::{try_with_lock_no_wait, LockError};
    12 use crate::manifest::{Manifest, Manifestlog};
       
    13 use crate::options::default_revlog_options;
       
    14 use crate::requirements::DIRSTATE_TRACKED_HINT_V1;
    11 use crate::requirements::DIRSTATE_TRACKED_HINT_V1;
       
    12 use crate::revlog::changelog::Changelog;
    15 use crate::revlog::filelog::Filelog;
    13 use crate::revlog::filelog::Filelog;
    16 use crate::revlog::RevlogError;
    14 use crate::revlog::manifest::{Manifest, Manifestlog};
       
    15 use crate::revlog::options::default_revlog_options;
       
    16 use crate::revlog::{RevlogError, RevlogType};
    17 use crate::utils::debug::debug_wait_for_file_or_print;
    17 use crate::utils::debug::debug_wait_for_file_or_print;
    18 use crate::utils::files::get_path_from_bytes;
    18 use crate::utils::files::get_path_from_bytes;
    19 use crate::utils::hg_path::HgPath;
    19 use crate::utils::hg_path::HgPath;
    20 use crate::utils::SliceExt;
    20 use crate::utils::SliceExt;
    21 use crate::vfs::{is_dir, is_file, Vfs, VfsImpl};
    21 use crate::vfs::{is_dir, is_file, Vfs, VfsImpl};
    22 use crate::DirstateError;
    22 use crate::DirstateError;
    23 use crate::{
    23 use crate::{exit_codes, requirements, NodePrefix, UncheckedRevision};
    24     exit_codes, requirements, NodePrefix, RevlogType, UncheckedRevision,
       
    25 };
       
    26 use std::cell::{Ref, RefCell, RefMut};
    24 use std::cell::{Ref, RefCell, RefMut};
    27 use std::collections::HashSet;
    25 use std::collections::HashSet;
    28 use std::io::Seek;
    26 use std::io::Seek;
    29 use std::io::SeekFrom;
    27 use std::io::SeekFrom;
    30 use std::io::Write as IoWrite;
    28 use std::io::Write as IoWrite;