Mercurial > public > mercurial-scm > evolve
diff hgext/evolve.py @ 1336:10d2ef1f7ed4
evolve: don't use python sets on top of revset for evolve --rev
In --rev we were wrapping the revsets in python sets.
This is wrong as the use python sets force the wrapper revision set to be
computed earlier than it has to and have no order guarantee.
Removing this wrapping changes a test because the ordering does not appear to
be the same but the end result is the same.
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Wed, 13 May 2015 09:03:11 -0700 |
parents | 5e82d78f5872 |
children | e8e3dbddc198 |
line wrap: on
line diff
--- a/hgext/evolve.py Tue May 12 13:52:29 2015 -0700 +++ b/hgext/evolve.py Wed May 13 09:03:11 2015 -0700 @@ -1303,8 +1303,8 @@ return graftcmd(ui, repo, old_obsolete=True, **{'continue': True}) # Rev specified on the commands line if revopt: - revs = set(repo.revs(revopt)) - troubled = set(repo.revs('troubled()')) + revs = repo.revs(revopt) + troubled = repo.revs('troubled()') _revs = revs & troubled if not _revs: ui.write_err("No troubled changes in the specified revset")