30 """ |
30 """ |
31 def __init__(self, vcs, parent=None): |
31 def __init__(self, vcs, parent=None): |
32 """ |
32 """ |
33 Constructor |
33 Constructor |
34 |
34 |
|
35 @param vcs reference to the VCS object (Hg) |
35 @param parent reference to the parent widget (QWidget) |
36 @param parent reference to the parent widget (QWidget) |
36 """ |
37 """ |
37 super(HgQueuesListAllGuardsDialog, self).__init__(parent) |
38 super(HgQueuesListAllGuardsDialog, self).__init__(parent) |
38 self.setupUi(self) |
39 self.setupUi(self) |
39 |
40 |
72 process.start('hg', args) |
73 process.start('hg', args) |
73 procStarted = process.waitForStarted(5000) |
74 procStarted = process.waitForStarted(5000) |
74 if procStarted: |
75 if procStarted: |
75 finished = process.waitForFinished(30000) |
76 finished = process.waitForFinished(30000) |
76 if finished and process.exitCode() == 0: |
77 if finished and process.exitCode() == 0: |
77 output = \ |
78 output = str( |
78 str(process.readAllStandardOutput(), ioEncoding, 'replace') |
79 process.readAllStandardOutput(), ioEncoding, 'replace') |
79 |
80 |
80 if output: |
81 if output: |
81 guardsDict = {} |
82 guardsDict = {} |
82 for line in output.splitlines(): |
83 for line in output.splitlines(): |
83 if line: |
84 if line: |