[Updated] D12394: subsetmaker: stabilize the computation of `scratch` subset

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Wed Apr 6 09:45:47 UTC 2022


Closed by commit rHGee55de77f565: subsetmaker: stabilize the computation of `scratch` subset (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12394?vs=32682&id=32789

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12394/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D12394

AFFECTED FILES
  contrib/perf-utils/subsetmaker.py

CHANGE DETAILS

diff --git a/contrib/perf-utils/subsetmaker.py b/contrib/perf-utils/subsetmaker.py
--- a/contrib/perf-utils/subsetmaker.py
+++ b/contrib/perf-utils/subsetmaker.py
@@ -102,7 +102,9 @@
     for x in range(n):
         if not heads:
             break
-        pick = rand.choice(list(heads))
+        pickable = list(heads)
+        pickable.sort()
+        pick = rand.choice(pickable)
         heads.remove(pick)
         assert pick not in selected
         selected.add(pick)



To: marmoute, #hg-reviewers, Alphare
Cc: joerg.sonnenberger, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20220406/7f22121d/attachment-0001.html>


More information about the Mercurial-patches mailing list