diff -r a5d5e757efcf -r 8ee36e8a315f Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py --- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Sat Jan 28 16:02:52 2017 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Sat Jan 28 18:04:14 2017 +0100 @@ -718,18 +718,23 @@ @param bookmarks list of bookmarks (string) @return reference to the generated item (QTreeWidgetItem) """ - msg = [] + logMessageColumnWidth = self.vcs.getPlugin().getPreferences( + "LogMessageColumnWidth") + msgtxt = "" for line in message: - msg.append(line.strip()) + if ". " in line: + msgtxt += " " + line.strip().split(". ", 1)[0] + "." + break + else: + msgtxt += " " + line.strip() + if len(msgtxt) > logMessageColumnWidth: + msgtxt = "{0}...".format(msgtxt[:logMessageColumnWidth]) rev, node = revision.split(":") if rev in self.__closedBranchesRevs: closedStr = self.ClosedIndicator else: closedStr = "" - msgtxt = msg[0] - if len(msgtxt) > 30: - msgtxt = "{0}...".format(msgtxt[:30]) if phase in self.phases: phaseStr = self.phases[phase] else: