ok/jj
1
0
Fork 0
forked from mirrors/jj

index: move default_index_store.rs to sub directory named default_index

default_index_store.rs is relatively big, and it contains types and impls in
arbitrary order. Let's split them into sub modules. After everything moved,
mod.rs will only contain tests.
This commit is contained in:
Yuya Nishihara 2023-12-11 18:47:02 +09:00
parent d150c04c1a
commit cdcd465c79
8 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@ use std::io::Write as _;
use clap::Subcommand;
use jj_lib::backend::ObjectId;
use jj_lib::default_index_store::{DefaultIndexStore, DefaultReadonlyIndex};
use jj_lib::default_index::{DefaultIndexStore, DefaultReadonlyIndex};
use jj_lib::local_working_copy::LocalWorkingCopy;
use jj_lib::revset;
use jj_lib::working_copy::WorkingCopy;

View file

@ -24,7 +24,7 @@ use std::sync::Arc;
use itertools::Itertools;
use crate::backend::{ChangeId, CommitId, MillisSinceEpoch};
use crate::default_index_store::{CompositeIndex, IndexEntry, IndexEntryByPosition, IndexPosition};
use crate::default_index::{CompositeIndex, IndexEntry, IndexEntryByPosition, IndexPosition};
use crate::default_revset_graph_iterator::RevsetGraphIterator;
use crate::id_prefix::{IdIndex, IdIndexSource, IdIndexSourceEntry};
use crate::index::{HexPrefix, PrefixResolution};
@ -857,7 +857,7 @@ fn has_diff_from_parent(
mod tests {
use super::*;
use crate::backend::{ChangeId, CommitId, ObjectId};
use crate::default_index_store::DefaultMutableIndex;
use crate::default_index::DefaultMutableIndex;
/// Generator of unique 16-byte ChangeId excluding root id
fn change_id_generator() -> impl FnMut() -> ChangeId {

View file

@ -18,7 +18,7 @@ use std::cmp::{min, Ordering};
use std::collections::{BTreeMap, HashSet};
use crate::backend::CommitId;
use crate::default_index_store::{CompositeIndex, IndexEntry, IndexPosition};
use crate::default_index::{CompositeIndex, IndexEntry, IndexPosition};
use crate::revset_graph::{RevsetGraphEdge, RevsetGraphEdgeType};
/// Like `RevsetGraphEdge`, but stores `IndexPosition` instead.

View file

@ -25,7 +25,7 @@ pub mod commit;
pub mod commit_builder;
pub mod conflicts;
pub mod dag_walk;
pub mod default_index_store;
pub mod default_index;
pub mod default_revset_engine;
pub mod default_revset_graph_iterator;
pub mod default_submodule_store;

View file

@ -35,7 +35,7 @@ use crate::backend::{
};
use crate::commit::{Commit, CommitByCommitterTimestamp};
use crate::commit_builder::CommitBuilder;
use crate::default_index_store::DefaultIndexStore;
use crate::default_index::DefaultIndexStore;
use crate::default_submodule_store::DefaultSubmoduleStore;
use crate::file_util::{IoResultExt as _, PathError};
use crate::git_backend::GitBackend;

View file

@ -14,7 +14,7 @@
use itertools::Itertools;
use jj_lib::commit::Commit;
use jj_lib::default_index_store::DefaultReadonlyIndex;
use jj_lib::default_index::DefaultReadonlyIndex;
use jj_lib::default_revset_engine::{evaluate, RevsetImpl};
use jj_lib::repo::{ReadonlyRepo, Repo as _};
use jj_lib::revset::ResolvedExpression;

View file

@ -17,7 +17,7 @@ use std::sync::Arc;
use jj_lib::backend::CommitId;
use jj_lib::commit::Commit;
use jj_lib::commit_builder::CommitBuilder;
use jj_lib::default_index_store::{
use jj_lib::default_index::{
CompositeIndex, DefaultMutableIndex, DefaultReadonlyIndex, IndexPosition,
};
use jj_lib::index::Index as _;