Line 524 was comparing a rev number with a changeset
id which resulted in a TypeError. As a result,
the summary field in history only displayed the
summary text for merge changesets. This change compares
the rev number with the rev number of the changeset.


# HG changeset patch
# User Emmanuel Rosa <goaway1...@gmail.com>
# Date 1252884763 14400
# Node ID e7412d8c928c1f8cccb4d96c20c6aba80bf2252b
# Parent  b497fc6dfba964a5a545814e74b4f6a1b9c08064
treeview: fix TypeError when comparing rev number

Line 524 was comparing a rev number with a changeset
id which resulted in a TypeError. As a result,
the summary field in history only displayed the
summary text for merge changesets. This change compares
the rev number with the rev number of the changeset.

diff --git a/tortoisehg/hgtk/logview/treeview.py b/tortoisehg/hgtk/logview/treeview.py
--- a/tortoisehg/hgtk/logview/treeview.py
+++ b/tortoisehg/hgtk/logview/treeview.py
@@ -521,7 +521,7 @@
             return 'blue'
         elif len(parents) == 1:
             # detect non-trivial parent
-            if long(rev) != parents[0]+1:
+            if long(rev) != parents[0].rev()+1:
                 return '#900000'
             else:
                 return 'black'
------------------------------------------------------------------------------
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
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to