# HG changeset patch # User Danny Hooper # Date 1553218029 25200 # Node ID 8f427f7c1f715c5aeb6de70fcb7f37c29a5667e5 # Parent 7f6b375a89031740657d96f948cde4d8b06e9b5d fix: make the order of the work queue deterministic This makes any output generated during the parallel phase of execution stable if parallelism is disabled. This helps write tests like that in the future. Differential Revision: https://phab.mercurial-scm.org/D6166 diff -r 7f6b375a8903 -r 8f427f7c1f71 hgext/fix.py --- a/hgext/fix.py Thu Mar 21 18:35:39 2019 -0700 +++ b/hgext/fix.py Thu Mar 21 18:27:09 2019 -0700 @@ -280,8 +280,8 @@ for rev in sorted(revstofix): fixctx = repo[rev] match = scmutil.match(fixctx, pats, opts) - for path in pathstofix(ui, repo, pats, opts, match, basectxs[rev], - fixctx): + for path in sorted(pathstofix( + ui, repo, pats, opts, match, basectxs[rev], fixctx)): fctx = fixctx[path] if fctx.islink(): continue