Mercurial > hg-stable
changeset 33088:a76a64c78807
dagop: use smartset.min() in revdescendants() generator
All callers pass the result of revset.getset(), which should be a smartset.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 23 Jun 2017 21:15:10 +0900 |
parents | d83b189aef83 |
children | 58ebb38456e0 |
files | mercurial/dagop.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dagop.py Tue Jun 20 22:26:52 2017 +0900 +++ b/mercurial/dagop.py Fri Jun 23 21:15:10 2017 +0900 @@ -91,9 +91,7 @@ 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