Show More
@@ -102,7 +102,9 b' def scratch(repo, subset, x):' | |||||
102 | for x in range(n): |
|
102 | for x in range(n): | |
103 | if not heads: |
|
103 | if not heads: | |
104 | break |
|
104 | break | |
105 |
pick = |
|
105 | pickable = list(heads) | |
|
106 | pickable.sort() | |||
|
107 | pick = rand.choice(pickable) | |||
106 | heads.remove(pick) |
|
108 | heads.remove(pick) | |
107 | assert pick not in selected |
|
109 | assert pick not in selected | |
108 | selected.add(pick) |
|
110 | selected.add(pick) |
General Comments 0
You need to be logged in to leave comments.
Login now