Documentation/Source/eric5.Plugins.VcsPlugins.vcsMercurial.HgClient.html

changeset 1267
5eddb59304c7
parent 1258
d5e035c315d5
child 1323
3126121aeb4f
equal deleted inserted replaced
1266:ce8a103501a5 1267:5eddb59304c7
221 tuple of flag indicating a successful start (boolean) and 221 tuple of flag indicating a successful start (boolean) and
222 an error message (string) in case of failure 222 an error message (string) in case of failure
223 </dd> 223 </dd>
224 </dl><a NAME="HgClient.runcommand" ID="HgClient.runcommand"></a> 224 </dl><a NAME="HgClient.runcommand" ID="HgClient.runcommand"></a>
225 <h4>HgClient.runcommand</h4> 225 <h4>HgClient.runcommand</h4>
226 <b>runcommand</b>(<i>args, prompt=None, input=None</i>) 226 <b>runcommand</b>(<i>args, prompt=None, input=None, output=None, error=None</i>)
227 <p> 227 <p>
228 Public method to execute a command via the command server. 228 Public method to execute a command via the command server.
229 </p><dl> 229 </p><dl>
230 <dt><i>args</i></dt> 230 <dt><i>args</i></dt>
231 <dd> 231 <dd>
232 list of arguments for the command (list of string) 232 list of arguments for the command (list of string)
233 </dd><dt><i>prompt</i></dt> 233 </dd><dt><i>prompt=</i></dt>
234 <dd> 234 <dd>
235 function to reply to prompts by the server. It 235 function to reply to prompts by the server. It
236 receives the max number of bytes to return and the contents 236 receives the max number of bytes to return and the contents
237 of the output channel received so far. 237 of the output channel received so far.
238 </dd><dt><i>input</i></dt> 238 </dd><dt><i>input=</i></dt>
239 <dd> 239 <dd>
240 function to reply to bulk data requests by the server. 240 function to reply to bulk data requests by the server.
241 It receives the max number of bytes to return. 241 It receives the max number of bytes to return.
242 </dd><dt><i>output=</i></dt>
243 <dd>
244 function receiving the data from the server (string).
245 If a prompt function is given, this parameter will be ignored.
246 </dd><dt><i>error=</i></dt>
247 <dd>
248 function receiving error messages from the server (string)
242 </dd> 249 </dd>
243 </dl><dl> 250 </dl><dl>
244 <dt>Returns:</dt> 251 <dt>Returns:</dt>
245 <dd> 252 <dd>
246 output and errors of the command server (string) 253 output and errors of the command server (string). In case output
254 and/or error functions were given, the respective return value will
255 be an empty string.
247 </dd> 256 </dd>
248 </dl><a NAME="HgClient.startServer" ID="HgClient.startServer"></a> 257 </dl><a NAME="HgClient.startServer" ID="HgClient.startServer"></a>
249 <h4>HgClient.startServer</h4> 258 <h4>HgClient.startServer</h4>
250 <b>startServer</b>(<i></i>) 259 <b>startServer</b>(<i></i>)
251 <p> 260 <p>

eric ide

mercurial