# HG changeset patch # User Yuya Nishihara # Date 2017-06-23 12:15:10 # Node ID a76a64c78807b3ec01df039d7e10915ab7e95cb3 # Parent d83b189aef83684e115f7e9675277804d9e71d26 dagop: use smartset.min() in revdescendants() generator All callers pass the result of revset.getset(), which should be a smartset. diff --git a/mercurial/dagop.py b/mercurial/dagop.py --- a/mercurial/dagop.py +++ b/mercurial/dagop.py @@ -91,9 +91,7 @@ def _genrevdescendants(repo, revs, follo cut = None cl = repo.changelog - # XXX this should be 'parentset.min()' assuming 'parentset' is a - # smartset (and if it is not, it should.) - first = min(revs) + first = revs.min() nullrev = node.nullrev if first == nullrev: # Are there nodes with a null first parent and a non-null