eric6/Plugins/VcsPlugins/vcsMercurial/HgImportDialog.py

changeset 8259
2bbec88047dd
parent 8218
7c09585bd960
equal deleted inserted replaced
8258:82b608e352ec 8259:2bbec88047dd
71 a commit message, a commit date, a commit user, a flag indicating 71 a commit message, a commit date, a commit user, a flag indicating
72 to commit with the secret phase, a strip count and a flag 72 to commit with the secret phase, a strip count and a flag
73 indicating to enforce the import 73 indicating to enforce the import
74 @rtype tuple of (str, bool, str, str, str, bool, int, bool) 74 @rtype tuple of (str, bool, str, str, str, bool, int, bool)
75 """ 75 """
76 if self.dateEdit.dateTime() != self.__initDateTime: 76 date = (
77 date = self.dateEdit.dateTime().toString("yyyy-MM-dd hh:mm") 77 self.dateEdit.dateTime().toString("yyyy-MM-dd hh:mm")
78 else: 78 if self.dateEdit.dateTime() != self.__initDateTime else
79 date = "" 79 ""
80 )
80 81
81 return (self.patchFilePicker.text(), self.noCommitCheckBox.isChecked(), 82 return (self.patchFilePicker.text(), self.noCommitCheckBox.isChecked(),
82 self.messageEdit.toPlainText(), date, self.userEdit.text(), 83 self.messageEdit.toPlainText(), date, self.userEdit.text(),
83 self.secretCheckBox.isChecked(), self.stripSpinBox.value(), 84 self.secretCheckBox.isChecked(), self.stripSpinBox.value(),
84 self.forceCheckBox.isChecked()) 85 self.forceCheckBox.isChecked())

eric ide

mercurial