Show More
@@ -307,7 +307,8 def synthesize(ui, repo, descpath, **opt | |||
|
307 | 307 | |
|
308 | 308 | # the number of heads will grow without bound if we use a pure |
|
309 | 309 | # model, so artificially constrain their proliferation |
|
310 |
|
|
|
310 | toomanyheads = len(heads) > random.randint(1, 20) | |
|
311 | if p2distance[0] and (pick(parents) == 2 or toomanyheads): | |
|
311 | 312 | r2, p2 = pickhead(heads.difference([r1]), p2distance) |
|
312 | 313 | else: |
|
313 | 314 | r2, p2 = nullrev, nullid |
General Comments 0
You need to be logged in to leave comments.
Login now