D4327: dagop: extract headsetofconnecteds() from dagutil
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Sat Aug 18 04:05:43 EDT 2018
yuja added a comment.
> +def headrevs(revs, parentsfn):
> + """Resolve the set of heads from a set of revisions.
> +
> + Receives an iterable of revision numbers and a callbable that receives a
> + revision number and returns an iterable of parent revision numbers, possibly
> + including nullrev.
> +
> + Returns a set of revision numbers that are DAG heads within the passed subset.
> + """
> + headrevs = set()
Absorbed fix from https://phab.mercurial-scm.org/D4328 since this never be non-empty set.
Overall, the series looks really nice. Thanks.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4327
To: indygreg, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list