revset: update documentation of Revset::iter()

Since we hid the graph iterator implementation behind
`Revset::iter_graph()`, I don't think we have any callers of
`Revset::iter()` require the iteration to be in index position order,
so let's not promise that. We do want to promise that the iteration is
in topological order with children before parents, however.
This commit is contained in:
Martin von Zweigbergk 2023-03-19 16:47:16 -07:00 committed by Martin von Zweigbergk
parent fc84c02c8e
commit e721a81780

View file

@ -1556,7 +1556,7 @@ pub fn resolve_symbols(
}
pub trait Revset<'index> {
// All revsets currently iterate in order of descending index position
/// Iterate in topological order with children before parents.
fn iter(&self) -> Box<dyn Iterator<Item = IndexEntry<'index>> + '_>;
fn iter_graph(