Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 1242
dfb9609caf51
parent 1241
09c6155ee612
child 1248
7d0eff6435a9
equal deleted inserted replaced
1241:09c6155ee612 1242:dfb9609caf51
648 args.append(self.vcs.bundleFile) 648 args.append(self.vcs.bundleFile)
649 if not self.projectMode: 649 if not self.projectMode:
650 args.append(self.filename) 650 args.append(self.filename)
651 651
652 if self.__hgClient: 652 if self.__hgClient:
653 self.inputGroup.setEnabled(False)
654 self.inputGroup.hide()
655
653 out, err = self.__hgClient.runcommand(args) 656 out, err = self.__hgClient.runcommand(args)
654 self.buf = out.splitlines(True) 657 self.buf = out.splitlines(True)
655 if err: 658 if err:
656 self.__showError(err) 659 self.__showError(err)
657 self.__processBuffer() 660 self.__processBuffer()
935 """ 938 """
936 if button == self.buttonBox.button(QDialogButtonBox.Close): 939 if button == self.buttonBox.button(QDialogButtonBox.Close):
937 self.close() 940 self.close()
938 elif button == self.buttonBox.button(QDialogButtonBox.Cancel): 941 elif button == self.buttonBox.button(QDialogButtonBox.Cancel):
939 self.cancelled = True 942 self.cancelled = True
940 self.__finish() 943 if self.__hgClient:
944 self.__hgClient.cancel()
945 else:
946 self.__finish()
941 elif button == self.refreshButton: 947 elif button == self.refreshButton:
942 self.on_refreshButton_clicked() 948 self.on_refreshButton_clicked()
943 949
944 def __updateDiffButtons(self): 950 def __updateDiffButtons(self):
945 """ 951 """

eric ide

mercurial