716 @param tags list of tags (string) |
716 @param tags list of tags (string) |
717 @param phase phase of the entry (string) |
717 @param phase phase of the entry (string) |
718 @param bookmarks list of bookmarks (string) |
718 @param bookmarks list of bookmarks (string) |
719 @return reference to the generated item (QTreeWidgetItem) |
719 @return reference to the generated item (QTreeWidgetItem) |
720 """ |
720 """ |
721 msg = [] |
721 logMessageColumnWidth = self.vcs.getPlugin().getPreferences( |
|
722 "LogMessageColumnWidth") |
|
723 msgtxt = "" |
722 for line in message: |
724 for line in message: |
723 msg.append(line.strip()) |
725 if ". " in line: |
|
726 msgtxt += " " + line.strip().split(". ", 1)[0] + "." |
|
727 break |
|
728 else: |
|
729 msgtxt += " " + line.strip() |
|
730 if len(msgtxt) > logMessageColumnWidth: |
|
731 msgtxt = "{0}...".format(msgtxt[:logMessageColumnWidth]) |
724 |
732 |
725 rev, node = revision.split(":") |
733 rev, node = revision.split(":") |
726 if rev in self.__closedBranchesRevs: |
734 if rev in self.__closedBranchesRevs: |
727 closedStr = self.ClosedIndicator |
735 closedStr = self.ClosedIndicator |
728 else: |
736 else: |
729 closedStr = "" |
737 closedStr = "" |
730 msgtxt = msg[0] |
|
731 if len(msgtxt) > 30: |
|
732 msgtxt = "{0}...".format(msgtxt[:30]) |
|
733 if phase in self.phases: |
738 if phase in self.phases: |
734 phaseStr = self.phases[phase] |
739 phaseStr = self.phases[phase] |
735 else: |
740 else: |
736 phaseStr = phase |
741 phaseStr = phase |
737 columnLabels = [ |
742 columnLabels = [ |