Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListAllGuardsDialog.py

changeset 2962
d6c9d1ca2da4
parent 2771
281c9b30dd91
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2961:e4e2efb4846a 2962:d6c9d1ca2da4
24 """ 24 """
25 def __init__(self, vcs, parent=None): 25 def __init__(self, vcs, parent=None):
26 """ 26 """
27 Constructor 27 Constructor
28 28
29 @param vcs reference to the VCS object (Hg)
29 @param parent reference to the parent widget (QWidget) 30 @param parent reference to the parent widget (QWidget)
30 """ 31 """
31 super().__init__(parent) 32 super().__init__(parent)
32 self.setupUi(self) 33 self.setupUi(self)
33 34
66 process.start('hg', args) 67 process.start('hg', args)
67 procStarted = process.waitForStarted(5000) 68 procStarted = process.waitForStarted(5000)
68 if procStarted: 69 if procStarted:
69 finished = process.waitForFinished(30000) 70 finished = process.waitForFinished(30000)
70 if finished and process.exitCode() == 0: 71 if finished and process.exitCode() == 0:
71 output = \ 72 output = str(
72 str(process.readAllStandardOutput(), ioEncoding, 'replace') 73 process.readAllStandardOutput(), ioEncoding, 'replace')
73 74
74 if output: 75 if output:
75 guardsDict = {} 76 guardsDict = {}
76 for line in output.splitlines(): 77 for line in output.splitlines():
77 if line: 78 if line:

eric ide

mercurial