297 msg = [] |
297 msg = [] |
298 for line in message: |
298 for line in message: |
299 msg.append(line.strip()) |
299 msg.append(line.strip()) |
300 |
300 |
301 rev, node = revision.split(":") |
301 rev, node = revision.split(":") |
|
302 msgtxt = msg[0] |
|
303 if len(msgtxt) > 30: |
|
304 msgtxt = "{0}...".format(msgtxt[:30]) |
302 itm = QTreeWidgetItem(self.logTree, [ |
305 itm = QTreeWidgetItem(self.logTree, [ |
303 "", |
306 "", |
304 branches[0], |
307 branches[0], |
305 "{0:>7}:{1}".format(rev, node), |
308 "{0:>7}:{1}".format(rev, node), |
306 author, |
309 author, |
307 date, |
310 date, |
308 " ".join(msg[:1]), |
311 msgtxt, |
309 ", ".join(tags), |
312 ", ".join(tags), |
310 ]) |
313 ]) |
311 |
314 |
312 itm.setForeground(self.BranchColumn, |
315 itm.setForeground(self.BranchColumn, |
313 QBrush(QColor(self.__branchColor(branches[0])))) |
316 QBrush(QColor(self.__branchColor(branches[0])))) |
389 args.append('{0}:0'.format(startRev)) |
392 args.append('{0}:0'.format(startRev)) |
390 if not self.stopCheckBox.isChecked(): |
393 if not self.stopCheckBox.isChecked(): |
391 args.append('--follow') |
394 args.append('--follow') |
392 args.append('--template') |
395 args.append('--template') |
393 args.append("change|{rev}:{node|short}\n" |
396 args.append("change|{rev}:{node|short}\n" |
394 "user|{email}\n" |
397 "user|{author|email}\n" |
395 "parents|{parents}\n" |
398 "parents|{parents}\n" |
396 "date|{date|isodate}\n" |
399 "date|{date|isodate}\n" |
397 "description|{desc}\n" |
400 "description|{desc}\n" |
398 "file_adds|{file_adds}\n" |
401 "file_adds|{file_adds}\n" |
399 "files_mods|{file_mods}\n" |
402 "files_mods|{file_mods}\n" |