This is an archive of the discontinued Mercurial Phabricator instance.

dagop: extract descendants() from revlog module
ClosedPublic

Authored by indygreg on Sep 28 2018, 8:18 PM.

Details

Summary

This method needs to be implemented in other storage backends and is
generic if we parameterize the functions for retrieving revision
numbers and parent revision numbers.

Let's extract it to dagop so backends don't need to reinvent the
wheel.

I'm not too worried about performance overhead of the extra function
call because I don't expect anyone to be calling descendants() in a
tight loop.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Sep 28 2018, 8:18 PM
This revision was automatically updated to reflect the committed changes.