# HG changeset patch
# User Simon Heimberg <sim...@besonet.ch>
# Date 1384204372 -3600
# Node ID 9ef9dd7033d5d0248fa59cfb7d41a6f11dd42864
# Parent  af575fc2cc609800e5e8ba5df45d2e91a04cecc5
graph: only draw one line to one parent

Because the parents originate from multiple soucres it is theoretically possible
that several point to the same revision. Only take the first of this (which is
graftsource because it is added before).

diff -r af575fc2cc60 -r 9ef9dd7033d5 tortoisehg/hgqt/graph.py
--- a/tortoisehg/hgqt/graph.py  Die Nov 05 19:11:38 2013 +0100
+++ b/tortoisehg/hgqt/graph.py  Mon Nov 11 22:12:52 2013 +0100
@@ -154,6 +154,8 @@
             preferred_color = curcolor
         for parent, link_type in parents:
             if parent not in next_revs:
+                if parent in parents_to_add:
+                    continue
                 parents_to_add.append(parent)
                 links_to_add.append(link_type)
                 children_to_add.append((curr_rev,))

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to