lazyancestors: extract __iter__ to free function
The next patch will keep a reference to the returned iterator in a field, which would otherwise result in a reference cycle. Differential Revision: https://phab.mercurial-scm.org/D4517
Please register or sign in to comment