equal
deleted
inserted
replaced
229 if n == -1: |
229 if n == -1: |
230 last = text[i:] |
230 last = text[i:] |
231 if last: |
231 if last: |
232 lines.append(last) |
232 lines.append(last) |
233 return lines |
233 return lines |
234 lines.append(text[i:n+1]) |
234 lines.append(text[i:n + 1]) |
235 i = n + 1 |
235 i = n + 1 |
236 |
236 |
237 def parsehghaveoutput(lines): |
237 def parsehghaveoutput(lines): |
238 '''Parse hghave log lines. |
238 '''Parse hghave log lines. |
239 Return tuple of lists (missing, failed): |
239 Return tuple of lists (missing, failed): |
658 |
658 |
659 tests.reverse() |
659 tests.reverse() |
660 jobs = [[] for j in xrange(options.jobs)] |
660 jobs = [[] for j in xrange(options.jobs)] |
661 while tests: |
661 while tests: |
662 for job in jobs: |
662 for job in jobs: |
663 if not tests: break |
663 if not tests: |
|
664 break |
664 job.append(tests.pop()) |
665 job.append(tests.pop()) |
665 fps = {} |
666 fps = {} |
666 for j, job in enumerate(jobs): |
667 for j, job in enumerate(jobs): |
667 if not job: |
668 if not job: |
668 continue |
669 continue |