403 |
403 |
404 args = self.vcs.initCommand("status") |
404 args = self.vcs.initCommand("status") |
405 args.append("--porcelain") |
405 args.append("--porcelain") |
406 args.append("--") |
406 args.append("--") |
407 if isinstance(fn, list): |
407 if isinstance(fn, list): |
408 self.dname, fnames = self.vcs.splitPathList(fn) |
408 self.dname, _fnames = self.vcs.splitPathList(fn) |
409 self.vcs.addArguments(args, fn) |
409 self.vcs.addArguments(args, fn) |
410 else: |
410 else: |
411 self.dname, fname = self.vcs.splitPath(fn) |
411 self.dname, _fname = self.vcs.splitPath(fn) |
412 args.append(fn) |
412 args.append(fn) |
413 |
413 |
414 # find the root of the repo |
414 # find the root of the repo |
415 self.__repodir = self.vcs.findRepoRoot(self.dname) |
415 self.__repodir = self.vcs.findRepoRoot(self.dname) |
416 if not self.__repodir: |
416 if not self.__repodir: |
491 self.__finish() |
491 self.__finish() |
492 elif button == self.refreshButton: |
492 elif button == self.refreshButton: |
493 self.on_refreshButton_clicked() |
493 self.on_refreshButton_clicked() |
494 |
494 |
495 @pyqtSlot(int, QProcess.ExitStatus) |
495 @pyqtSlot(int, QProcess.ExitStatus) |
496 def __procFinished(self, exitCode, exitStatus): |
496 def __procFinished(self, _exitCode, _exitStatus): |
497 """ |
497 """ |
498 Private slot connected to the finished signal. |
498 Private slot connected to the finished signal. |
499 |
499 |
500 @param exitCode exit code of the process |
500 @param _exitCode exit code of the process (unused) |
501 @type int |
501 @type int |
502 @param exitStatus exit status of the process |
502 @param _exitStatus exit status of the process (unused) |
503 @type QProcess.ExitStatus |
503 @type QProcess.ExitStatus |
504 """ |
504 """ |
505 self.__finish() |
505 self.__finish() |
506 |
506 |
507 def __readStdout(self): |
507 def __readStdout(self): |