Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3353
ddc966a494b0
child 3591
2f2a4a76dd22
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
25 @signal rejected() emitted, if the dialog was rejected 25 @signal rejected() emitted, if the dialog was rejected
26 """ 26 """
27 accepted = pyqtSignal() 27 accepted = pyqtSignal()
28 rejected = pyqtSignal() 28 rejected = pyqtSignal()
29 29
30 def __init__(self, vcs, mq, parent=None): 30 def __init__(self, vcs, msg, mq, parent=None):
31 """ 31 """
32 Constructor 32 Constructor
33 33
34 @param vcs reference to the vcs object 34 @param vcs reference to the vcs object
35 @param msg initial message (string)
35 @param mq flag indicating a queue commit (boolean) 36 @param mq flag indicating a queue commit (boolean)
36 @param parent parent widget (QWidget) 37 @param parent parent widget (QWidget)
37 """ 38 """
38 super(HgCommitDialog, self).__init__(parent, Qt.WindowFlags(Qt.Window)) 39 super(HgCommitDialog, self).__init__(parent, Qt.WindowFlags(Qt.Window))
39 self.setupUi(self) 40 self.setupUi(self)
41
42 self.logEdit.setPlainText(msg)
40 43
41 if mq: 44 if mq:
42 self.amendCheckBox.setVisible(False) 45 self.amendCheckBox.setVisible(False)
43 self.subrepoCheckBox.setVisible(False) 46 self.subrepoCheckBox.setVisible(False)
44 else: 47 else:

eric ide

mercurial