Show More
@@ -62,7 +62,7 b' def filecontent(iteridx, oldcontent):' | |||||
62 | else: |
|
62 | else: | |
63 | current = str(iteridx) |
|
63 | current = str(iteridx) | |
64 |
|
64 | |||
65 |
for idx in |
|
65 | for idx in range(NB_LINES): | |
66 | do_change_line = True |
|
66 | do_change_line = True | |
67 | if oldcontent is not None and ALWAYS_CHANGE_LINES < idx: |
|
67 | if oldcontent is not None and ALWAYS_CHANGE_LINES < idx: | |
68 | do_change_line = not ((idx - iteridx) % OTHER_CHANGES) |
|
68 | do_change_line = not ((idx - iteridx) % OTHER_CHANGES) | |
@@ -113,7 +113,7 b' def run(target):' | |||||
113 | hg('init') |
|
113 | hg('init') | |
114 | updatefile(FILENAME, None) |
|
114 | updatefile(FILENAME, None) | |
115 | hg('commit', '--addremove', '--message', 'initial commit') |
|
115 | hg('commit', '--addremove', '--message', 'initial commit') | |
116 |
for idx in |
|
116 | for idx in range(1, NB_CHANGESET + 1): | |
117 | if sys.stdout.isatty(): |
|
117 | if sys.stdout.isatty(): | |
118 | print("generating commit #%d/%d" % (idx, NB_CHANGESET)) |
|
118 | print("generating commit #%d/%d" % (idx, NB_CHANGESET)) | |
119 | if (idx % PERIOD_BRANCHING) == 0: |
|
119 | if (idx % PERIOD_BRANCHING) == 0: |
General Comments 0
You need to be logged in to leave comments.
Login now