database/indexer: Drop sorting
* After a quick discussion with the gix folks, the sorting has no
impact on linear git histories. (and the presented double-sided
rev() isn't possible)
* We're going to have to figure out a way to reverse the presentation
of the commits stored in RocksDB.
Diff
src/database/indexer.rs | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
@@ -13,8 +13,6 @@
bstr::{BStr, ByteSlice},
objs::tree::EntryKind,
refs::Category,
revision::walk::Sorting,
traverse::commit::simple::CommitTimeOrder,
url::Scheme,
};
@@ -264,8 +262,7 @@
let mut seen = false;
let mut i = 0;
let sorting = Sorting::ByCommitTime(CommitTimeOrder::OldestFirst);
let revwalk_iter = git_repository.rev_walk([commit.id()]).sorting(sorting).all()?;
let revwalk_iter = git_repository.rev_walk([commit.id()]).all()?;
for revwalk in revwalk_iter {
for revs in &revwalk.into_iter().chunks(250) {
if ((i + 1) % 5_000) == 0 {