Mercurial > public > mercurial-scm > hg-stable
diff mercurial/graphmod.py @ 31043:aea06029919e
revset: import set classes directly from smartset module
Follows up 1be65deb3d54.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 19 Feb 2017 18:16:09 +0900 |
parents | 2188f170f5b6 |
children | d0b9e9803caf |
line wrap: on
line diff
--- a/mercurial/graphmod.py Sat Feb 18 18:00:01 2017 +0900 +++ b/mercurial/graphmod.py Sun Feb 19 18:16:09 2017 +0900 @@ -22,6 +22,7 @@ from .node import nullrev from . import ( revset, + smartset, util, ) @@ -67,8 +68,8 @@ if gp is None: # precompute slow query as we know reachableroots() goes # through all revs (issue4782) - if not isinstance(revs, revset.baseset): - revs = revset.baseset(revs) + if not isinstance(revs, smartset.baseset): + revs = smartset.baseset(revs) gp = gpcache[mpar] = sorted(set(revset.reachableroots( repo, revs, [mpar]))) if not gp: