Show More
@@ -13,10 +13,15 b' from mercurial import (' | |||||
13 | ancestor, |
|
13 | ancestor, | |
14 | debugcommands, |
|
14 | debugcommands, | |
15 | hg, |
|
15 | hg, | |
|
16 | pycompat, | |||
16 | ui as uimod, |
|
17 | ui as uimod, | |
17 | util, |
|
18 | util, | |
18 | ) |
|
19 | ) | |
19 |
|
20 | |||
|
21 | if pycompat.ispy3: | |||
|
22 | long = int | |||
|
23 | xrange = range | |||
|
24 | ||||
20 | def buildgraph(rng, nodes=100, rootprob=0.05, mergeprob=0.2, prevprob=0.7): |
|
25 | def buildgraph(rng, nodes=100, rootprob=0.05, mergeprob=0.2, prevprob=0.7): | |
21 | '''nodes: total number of nodes in the graph |
|
26 | '''nodes: total number of nodes in the graph | |
22 | rootprob: probability that a new node (not 0) will be a root |
|
27 | rootprob: probability that a new node (not 0) will be a root |
General Comments 0
You need to be logged in to leave comments.
Login now