eric6/Plugins/VcsPlugins/vcsMercurial/HgDialog.py

branch
maintenance
changeset 8043
0acf98cd089a
parent 7924
8a96736d465e
parent 7971
ff2971513d6d
child 8142
43248bafe9b2
equal deleted inserted replaced
7991:866adc8c315b 8043:0acf98cd089a
77 if button == self.buttonBox.button(QDialogButtonBox.Close): 77 if button == self.buttonBox.button(QDialogButtonBox.Close):
78 self.close() 78 self.close()
79 elif button == self.buttonBox.button(QDialogButtonBox.Cancel): 79 elif button == self.buttonBox.button(QDialogButtonBox.Cancel):
80 self.vcs.getClient().cancel() 80 self.vcs.getClient().cancel()
81 81
82 def startProcess(self, args, workingDir=None, showArgs=True, 82 def startProcess(self, args, showArgs=True, environment=None, client=None):
83 environment=None):
84 """ 83 """
85 Public slot used to start the process. 84 Public slot used to start the process.
86 85
87 @param args list of arguments for the process (list of strings) 86 @param args list of arguments for the process
88 @keyparam workingDir working directory for the process (string) 87 @type list of str
89 @keyparam showArgs flag indicating to show the arguments (boolean) 88 @param showArgs flag indicating to show the arguments
90 @keyparam environment dictionary of environment settings to add 89 @type bool
91 or change for the git process (dict of string and string) 90 @param environment dictionary of environment settings to add
91 or change for the git process
92 @type dict
93 @param client reference to a non-standard command client
94 @type HgClient
92 @return flag indicating a successful start of the process 95 @return flag indicating a successful start of the process
96 @rtype bool
93 """ 97 """
94 self.errorGroup.hide() 98 self.errorGroup.hide()
95 self.inputGroup.hide() 99 self.inputGroup.hide()
96 self.normal = False 100 self.normal = False
97 101
109 113
110 if showArgs: 114 if showArgs:
111 self.resultbox.append(' '.join(args)) 115 self.resultbox.append(' '.join(args))
112 self.resultbox.append('') 116 self.resultbox.append('')
113 117
114 out, err = self.vcs.getClient().runcommand( 118 if client is None:
119 client = self.vcs.getClient()
120 out, err = client.runcommand(
115 args, 121 args,
116 prompt=self.__getInput, 122 prompt=self.__getInput,
117 output=self.__showOutput, 123 output=self.__showOutput,
118 error=self.__showError 124 error=self.__showError
119 ) 125 )

eric ide

mercurial