77 process.start('hg', args) |
77 process.start('hg', args) |
78 procStarted = process.waitForStarted(5000) |
78 procStarted = process.waitForStarted(5000) |
79 if procStarted: |
79 if procStarted: |
80 finished = process.waitForFinished(30000) |
80 finished = process.waitForFinished(30000) |
81 if finished and process.exitCode() == 0: |
81 if finished and process.exitCode() == 0: |
82 output = \ |
82 output = str( |
83 str(process.readAllStandardOutput(), ioEncoding, 'replace') |
83 process.readAllStandardOutput(), ioEncoding, |
|
84 'replace') |
84 |
85 |
85 self.bookmarksList = [] |
86 self.bookmarksList = [] |
86 for line in output.splitlines(): |
87 for line in output.splitlines(): |
87 l = line.strip().split() |
88 l = line.strip().split() |
88 if l[-1][0] in "1234567890": |
89 if l[-1][0] in "1234567890": |
273 process.start('hg', args) |
274 process.start('hg', args) |
274 procStarted = process.waitForStarted(5000) |
275 procStarted = process.waitForStarted(5000) |
275 if procStarted: |
276 if procStarted: |
276 finished = process.waitForFinished(30000) |
277 finished = process.waitForFinished(30000) |
277 if finished and process.exitCode() == 0: |
278 if finished and process.exitCode() == 0: |
278 output = \ |
279 output = str( |
279 str(process.readAllStandardOutput(), ioEncoding, 'replace') |
280 process.readAllStandardOutput(), ioEncoding, |
|
281 'replace') |
280 |
282 |
281 for line in output.splitlines(): |
283 for line in output.splitlines(): |
282 if line.startswith(" "): |
284 if line.startswith(" "): |
283 l = line.strip().split() |
285 l = line.strip().split() |
284 del l[-1] |
286 del l[-1] |