# HG changeset patch
# User Henrik Stuart <h...@hstuart.dk>
# Date 1253731310 -7200
# Node ID 0702138404e463db876e3bb26d68f417c1dd92b0
# Parent  d4b374e7c546956be15a33794ff45f275d41724d
changeset: show summary line for current changeset

diff -r d4b374e7c546 -r 0702138404e4 tortoisehg/hgtk/changeset.py
--- a/tortoisehg/hgtk/changeset.py      Wed Sep 23 20:38:48 2009 +0200
+++ b/tortoisehg/hgtk/changeset.py      Wed Sep 23 20:41:50 2009 +0200
@@ -225,11 +225,16 @@
         eob = buf.get_end_iter()
         date = displaytime(ctx.date())
         change = str(rev) + ' (' + str(ctx) + ')'
+        try:
+            lines = ctx.description().splitlines()
+            summary = toutf(lines and lines[0] or '')
+        except:
+            summary = ''
         tags = ' '.join(ctx.tags())
 
         branch = ctx.branch()
 
-        title_line(_('changeset:'), change, 'changeset')
+        title_line(_('changeset:'), change + ' ' + summary, 'changeset')
         if branch != 'default':
             title_line(_('branch:'), branch, 'greybg')
         title_line(_('user/date:'), ctx.user() + '\t' + date, 'changeset')

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to