# HG changeset patch # User Pierre-Yves David # Date 1434062702 25200 # Node ID 94441df6206c38c227b4a3b117878a8287d16a85 # Parent fa2e91d00e4c8e5ff1d4cec84567752b9f69762b revset: mark spots that use 'set' instead of 'smartset' Using smartset is better because we can do more optimisation on it. So we are marking the faulty spot for later processing. diff -r fa2e91d00e4c -r 94441df6206c mercurial/revset.py --- a/mercurial/revset.py Thu Jun 11 15:43:11 2015 -0700 +++ b/mercurial/revset.py Thu Jun 11 15:45:02 2015 -0700 @@ -1353,6 +1353,8 @@ exclude = getset(repo, fullreposet(repo), args[1]) results = set(cl.findmissingrevs(common=exclude, heads=include)) + # XXX we should turn this into a baseset instead of a set, smartset may do + # some optimisations from the fact this is a baseset. return subset & results def origin(repo, subset, x): @@ -1382,6 +1384,8 @@ o = set([_firstsrc(r) for r in dests]) o -= set([None]) + # XXX we should turn this into a baseset instead of a set, smartset may do + # some optimisations from the fact this is a baseset. return subset & o def outgoing(repo, subset, x): @@ -1424,6 +1428,8 @@ for r in getset(repo, fullreposet(repo), x): ps.add(cl.parentrevs(r)[0]) ps -= set([node.nullrev]) + # XXX we should turn this into a baseset instead of a set, smartset may do + # some optimisations from the fact this is a baseset. return subset & ps def p2(repo, subset, x): @@ -1445,6 +1451,8 @@ for r in getset(repo, fullreposet(repo), x): ps.add(cl.parentrevs(r)[1]) ps -= set([node.nullrev]) + # XXX we should turn this into a baseset instead of a set, smartset may do + # some optimisations from the fact this is a baseset. return subset & ps def parents(repo, subset, x): @@ -1507,6 +1515,8 @@ s = set() for u in repo._phasecache._phasesets[1:]: s.update(u) + # XXX we should turn this into a baseset instead of a set, smartset may + # do some optimisations from the fact this is a baseset. return subset & s else: phase = repo._phasecache.phase