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