# HG changeset patch
# User Yuki KODAMA <[email protected]>
# Date 1253840836 -32400
# Node ID 91312ec1cc9a9702be06fa4bf22f093c6f10daf8
# Parent 04581205ae1acf699343d11888db85918c857549
changeset: separate user/date line
Brings same changes at <69248b2b3144> to patch diff.
diff --git a/tortoisehg/hgtk/changeset.py b/tortoisehg/hgtk/changeset.py
--- a/tortoisehg/hgtk/changeset.py
+++ b/tortoisehg/hgtk/changeset.py
@@ -321,20 +321,13 @@
# branch
if branch:
title_line(_('branch:'), toutf(branch), 'greybg')
- # user/date
- udhead = udbody = None
- if user and date:
- udhead = _('user/date:')
- udbody = toutf(user) + '\t' \
- + displaytime(util.parsedate(date))
- elif user:
- udhead = _('user:')
- udbody = toutf(user)
- elif date:
- udhead = _('date:')
- udbody = displaytime(util.parsedate(date))
- if udhead and udbody:
- title_line(udhead, udbody, 'changeset')
+ # user
+ if user:
+ title_line(_('user:'), toutf(user), 'changeset')
+ # date
+ if date:
+ title_line(_('date:'), displaytime(util.parsedate(date)),
+ 'changeset')
# parents
for pnode in (p1, p2):
if pnode is None:
@@ -342,7 +335,8 @@
title_line(_('parent:'), pnode[:12], 'parent')
# commit message
if msg:
- buf.insert(eob, '\n' + toutf(msg.rstrip('\r\n')) + '\n\n')
+ cmsg = '\n' + toutf(msg.rstrip('\r\n')) + '\n\n'
+ buf.insert(eob, cmsg)
finally:
if tmp:
os.unlink(tmp)
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop