705 else: |
705 else: |
706 err = "" |
706 err = "" |
707 if err: |
707 if err: |
708 self.__showError(err) |
708 self.__showError(err) |
709 elif self.commandMode != "incoming" or \ |
709 elif self.commandMode != "incoming" or \ |
710 os.path.exists(self.vcs.bundleFile): |
710 (self.vcs.bundleFile and |
|
711 os.path.exists(self.vcs.bundleFile)): |
711 out, err = self.__hgClient.runcommand(args) |
712 out, err = self.__hgClient.runcommand(args) |
712 self.buf = out.splitlines(True) |
713 self.buf = out.splitlines(True) |
713 if err: |
714 if err: |
714 self.__showError(err) |
715 self.__showError(err) |
715 self.__processBuffer() |
716 self.__processBuffer() |
728 process.start('hg', args) |
729 process.start('hg', args) |
729 procStarted = process.waitForStarted(5000) |
730 procStarted = process.waitForStarted(5000) |
730 if procStarted: |
731 if procStarted: |
731 process.waitForFinished(30000) |
732 process.waitForFinished(30000) |
732 |
733 |
733 if os.path.exists(self.vcs.bundleFile): |
734 if self.vcs.bundleFile and os.path.exists(self.vcs.bundleFile): |
734 self.process.start('hg', args) |
735 self.process.start('hg', args) |
735 procStarted = self.process.waitForStarted(5000) |
736 procStarted = self.process.waitForStarted(5000) |
736 if not procStarted: |
737 if not procStarted: |
737 self.inputGroup.setEnabled(False) |
738 self.inputGroup.setEnabled(False) |
738 self.inputGroup.hide() |
739 self.inputGroup.hide() |