Mercurial > hg
changeset 26093:204131131766
reachableroots: use smartset min
smartset min are likely to be optimised, cached or other magical property.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 21 Aug 2015 16:12:24 -0700 |
parents | 014044dbd4e8 |
children | df41c7be16d6 |
files | mercurial/revset.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Aug 21 16:03:25 2015 -0700 +++ b/mercurial/revset.py Fri Aug 21 16:12:24 2015 -0700 @@ -133,9 +133,7 @@ If includepath is True, return (<roots>::<heads>).""" if not roots: return baseset() - # XXX this should be 'parentset.min()' assuming 'parentset' is a smartset - # (and if it is not, it should.) - minroot = min(roots) + minroot = roots.min() roots = list(roots) heads = list(heads) try: