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
--- 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