124 self.__vcs.getPlugin().setPreferences( |
124 self.__vcs.getPlugin().setPreferences( |
125 'Commits', commitMessages) |
125 'Commits', commitMessages) |
126 |
126 |
127 author = self.authorComboBox.currentText() |
127 author = self.authorComboBox.currentText() |
128 if author: |
128 if author: |
129 commitAuthors = \ |
129 commitAuthors = self.__vcs.getPlugin().getPreferences( |
130 self.__vcs.getPlugin().getPreferences('CommitAuthors') |
130 'CommitAuthors') |
131 if author in commitAuthors: |
131 if author in commitAuthors: |
132 commitAuthors.remove(author) |
132 commitAuthors.remove(author) |
133 commitAuthors.insert(0, author) |
133 commitAuthors.insert(0, author) |
134 no = self.__vcs.getPlugin().getPreferences("CommitAuthorsLimit") |
134 no = self.__vcs.getPlugin().getPreferences("CommitAuthorsLimit") |
135 del commitAuthors[no:] |
135 del commitAuthors[no:] |
136 self.__vcs.getPlugin().setPreferences( |
136 self.__vcs.getPlugin().setPreferences( |
137 'CommitAuthors', commitAuthors) |
137 'CommitAuthors', commitAuthors) |
138 |
138 |
139 if self.dateTimeGroup.isChecked(): |
139 if self.dateTimeGroup.isChecked(): |
140 dateTime = \ |
140 dateTime = self.dateTimeEdit.dateTime().toString( |
141 self.dateTimeEdit.dateTime().toString("yyyy-MM-dd hh:mm") |
141 "yyyy-MM-dd hh:mm") |
142 else: |
142 else: |
143 dateTime = "" |
143 dateTime = "" |
144 |
144 |
145 return ( |
145 return ( |
146 msg, |
146 msg, |