Skip to content
Snippets Groups Projects
Commit 74c6bbd8 authored by Georges Racinet's avatar Georges Racinet
Browse files

rhgitaly::mercurial::DirIteratorWithoutFlatPaths

This iterator will be the core engine of `CommitService.GetTreeEntries` in
the simplest case: non-recursive without flat paths computation.

The flat paths computation is not as expensive in the Mercurial case as it is
in the Git case, because we are iterating over the entire manifest anyway (a
later version might use a binary search to find the starting point of the
requested directory, but all files within the directory will have to be scanned),
but not doing it enables this simple implementation: namely we can yield top-level
directories immediately, and hence to have at most one `TreeEntry` to yield per run
of the loop.
parent b4465e96
No related branches found
No related tags found
2 merge requests!189Merged stable branch into default and bumped VERSION,!188RHGitaly CommitService.GetTreeEntries implementation
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment