eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelveDataDialog.py

changeset 8259
2bbec88047dd
parent 8218
7c09585bd960
equal deleted inserted replaced
8258:82b608e352ec 8259:2bbec88047dd
46 @return tuple containing the name, date, message, a flag indicating 46 @return tuple containing the name, date, message, a flag indicating
47 to add/remove new/missing files and a flag indicating to keep the 47 to add/remove new/missing files and a flag indicating to keep the
48 shelved changes in the working directory 48 shelved changes in the working directory
49 @rtype tuple of (str, QDateTime, str, bool, bool) 49 @rtype tuple of (str, QDateTime, str, bool, bool)
50 """ 50 """
51 if self.dateTimeEdit.dateTime() != self.__initialDateTime: 51 dateTime = (
52 dateTime = self.dateTimeEdit.dateTime() 52 self.dateTimeEdit.dateTime()
53 else: 53 if self.dateTimeEdit.dateTime() != self.__initialDateTime else
54 dateTime = QDateTime() 54 QDateTime()
55 )
55 return ( 56 return (
56 self.nameEdit.text().replace(" ", "_"), 57 self.nameEdit.text().replace(" ", "_"),
57 dateTime, 58 dateTime,
58 self.messageEdit.text(), 59 self.messageEdit.text(),
59 self.addRemoveCheckBox.isChecked(), 60 self.addRemoveCheckBox.isChecked(),

eric ide

mercurial