Show More
@@ -33,20 +33,22 b'' | |||||
33 | > nested = True |
|
33 | > nested = True | |
34 | > loops = abs(loops) |
|
34 | > loops = abs(loops) | |
35 | > |
|
35 | > | |
|
36 | > progress = ui.makeprogress(topiclabel, unit='loopnum', total=total) | |||
|
37 | > other = ui.makeprogress('other', unit='othernum', total=total) | |||
36 | > for i in range(loops): |
|
38 | > for i in range(loops): | |
37 |
> |
|
39 | > progress.update(i, item=getloopitem(i)) | |
38 | > if opts.get('parallel'): |
|
40 | > if opts.get('parallel'): | |
39 |
> |
|
41 | > other.update(i, item='other.%d' % i) | |
40 | > if nested: |
|
42 | > if nested: | |
41 | > nested_steps = 2 |
|
43 | > nested_steps = 2 | |
42 | > if i and i % 4 == 0: |
|
44 | > if i and i % 4 == 0: | |
43 | > nested_steps = 5 |
|
45 | > nested_steps = 5 | |
|
46 | > nested = ui.makeprogress('nested', unit='nestnum', | |||
|
47 | > total=nested_steps) | |||
44 | > for j in range(nested_steps): |
|
48 | > for j in range(nested_steps): | |
45 | > ui.progress( |
|
49 | > nested.update(j, item='nested.%d' % j) | |
46 | > 'nested', j, 'nested.%d' % j, 'nestnum', nested_steps) |
|
50 | > nested.complete() | |
47 |
> |
|
51 | > progress.complete() | |
48 | > 'nested', None, 'nested.done', 'nestnum', nested_steps) |
|
|||
49 | > ui.progress(topiclabel, None, 'loop.done', 'loopnum', total) |
|
|||
50 | > |
|
52 | > | |
51 | > topiclabel = 'loop' |
|
53 | > topiclabel = 'loop' | |
52 | > def getloopitem(i): |
|
54 | > def getloopitem(i): |
General Comments 0
You need to be logged in to leave comments.
Login now