just playing with tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

revset: simplify evaluation of "all()"

I think this is more readable, and apparently it produces slightly better code
maybe because the compiler can determine that there are no unwanted markers.

+2 -1
+2 -1
lib/src/default_revset_engine.rs
··· 549 549 // (and `remote_branches()`) specified in the revset expression. Alternatively, 550 550 // some optimization rules could be removed, but that means `author(_) & x` 551 551 // would have to test `:heads() & x`. 552 - self.evaluate(&RevsetExpression::visible_heads().ancestors()) 552 + let walk = self.composite_index.walk_revs(self.visible_heads, &[]); 553 + Ok(Box::new(RevWalkRevset { walk })) 553 554 } 554 555 RevsetExpression::Commits(commit_ids) => Ok(self.revset_for_commit_ids(commit_ids)), 555 556 RevsetExpression::Children(roots) => {