# HG changeset patch # User Wagner Bruna <wbr...@softwareexpress.com.br> # Date 1253823756 10800 # Node ID e6f15e8e0fd5091b850a1b3a6b9282fe2acda90d # Parent 5c5c573f9f9d8832dafbece663c9bde3324db877 revgraph: use color 0 for the default branch
diff --git a/tortoisehg/hgtk/logview/revgraph.py b/tortoisehg/hgtk/logview/revgraph.py --- a/tortoisehg/hgtk/logview/revgraph.py +++ b/tortoisehg/hgtk/logview/revgraph.py @@ -58,7 +58,12 @@ return [x for x in repo.changelog.parentrevs(rev) if x != nullrev] def _color_of_branch(repo, rev): - return sum([ord(c) for c in repo[rev].branch()]) + branch = repo[rev].branch() + if branch == 'default': + color = 0 + else: + color = sum([ord(c) for c in branch]) + return color def _color_of(repo, rev, nextcolor, preferredcolor, branch_color=False): if not branch_color: ------------------------------------------------------------------------------ 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 Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop