Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 23501:424d669118d3 stable
log: fix log revset instability
The log/graphlog revset was not producing stable results since it was
iterating over a dict. Now we sort before iterating to guarantee a fixed order.
This fixes some potential flakiness in the tests.
author | Durham Goode <durham@fb.com> |
---|---|
date | Mon, 08 Dec 2014 15:41:54 -0800 |
parents | 9601229ed361 |
children | 32e68271a037 f4e6475950f1 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri Dec 05 14:27:32 2014 -0800 +++ b/mercurial/cmdutil.py Mon Dec 08 15:41:54 2014 -0800 @@ -1795,7 +1795,7 @@ filematcher = lambda rev: match expr = [] - for op, val in opts.iteritems(): + for op, val in sorted(opts.iteritems()): if not val: continue if op not in opt2revset: