# HG changeset patch # User Pierre-Yves David # Date 1498997444 -7200 # Node ID 96843c68acc8b04c37d8560a73866dffd58cee9b # Parent 9b68a2083dacdf81f4b90508948a294fcf846f23 topic: directly use the '_notpublic' revset This is just more robust to achieve the same goal. diff -r 9b68a2083dac -r 96843c68acc8 hgext3rd/topic/revset.py --- a/hgext3rd/topic/revset.py Sun Jul 02 13:49:32 2017 +0200 +++ b/hgext3rd/topic/revset.py Sun Jul 02 14:10:44 2017 +0200 @@ -36,16 +36,7 @@ else: matcher = lambda t: bool(t) - # XXX-mercurial 4.1 compat - # otherwise use: - # - # mutable = repo._phasecache.getrevset(repo, (phases.draft, phases.secret)) - # - mutable = set() - for u in repo._phasecache._phasesets[1:]: - mutable.update(u) - mutable = revset.baseset(mutable - repo.changelog.filteredrevs) - mutable.sort() + mutable = revset._notpublic(repo, revset.fullreposet(repo), ()) rawchange = repo.changelog.changelogrevision key = constants.extrakey