# HG changeset patch
# User Henrik Stuart <[email protected]>
# Date 1249243828 -7200
# Node ID 3f715c0c759c5a67bbbd1766d143bff37f0c625f
# Parent 00b74a95808535d244258ff921895d0ef3566f2f
changeset: show parent/child branch if it differs from current
diff -r 00b74a958085 -r 3f715c0c759c hggtk/changeset.py
--- a/hggtk/changeset.py Sat Aug 01 23:50:59 2009 -0500
+++ b/hggtk/changeset.py Sun Aug 02 22:10:28 2009 +0200
@@ -165,7 +165,9 @@
summary = toutf(summary)
except:
summary = ""
- change = str(pctx.rev()) + ' : ' + str(pctx)
+ change = str(pctx.rev()) + ' (' + str(pctx) + ')'
+ if pctx.branch() != ctx.branch():
+ change += ' [' + toutf(pctx.branch()) + ']'
title = _('parent:')
title += ' ' * (12 - len(title))
@@ -185,7 +187,9 @@
summary = toutf(summary)
except:
summary = ""
- change = str(cctx.rev()) + ' : ' + str(cctx)
+ change = str(cctx.rev()) + ' (' + str(cctx) + ')'
+ if cctx.branch() != ctx.branch():
+ change += ' [' + toutf(cctx.branch()) + ']'
title = _('child:')
title += ' ' * (12 - len(title))
buf.insert_with_tags_by_name(eob, title, 'parent')
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop