140 """ |
140 """ |
141 if revision == "": |
141 if revision == "": |
142 rev = "" |
142 rev = "" |
143 self.__lastRev = 0 |
143 self.__lastRev = 0 |
144 else: |
144 else: |
145 rev = "{0:7d}".format(revision.number) |
145 rev = revision.number |
146 self.__lastRev = revision.number |
146 self.__lastRev = revision.number |
147 if date == "": |
147 if date == "": |
148 dt = "" |
148 dt = "" |
149 else: |
149 else: |
150 dt = formatTime(date) |
150 dt = formatTime(date) |
151 |
151 |
152 itm = QTreeWidgetItem(self.logTree, |
152 itm = QTreeWidgetItem(self.logTree) |
153 [rev, author, dt, " ".join(message.splitlines())] |
153 itm.setData(0, Qt.DisplayRole, rev) |
154 ) |
154 itm.setData(1, Qt.DisplayRole, author) |
|
155 itm.setData(2, Qt.DisplayRole, dt) |
|
156 itm.setData(3, Qt.DisplayRole, " ".join(message.splitlines())) |
155 |
157 |
156 changes = [] |
158 changes = [] |
157 for changedPath in changedPaths: |
159 for changedPath in changedPaths: |
158 if changedPath["copyfrom_path"] is None: |
160 if changedPath["copyfrom_path"] is None: |
159 copyPath = "" |
161 copyPath = "" |