[Pkg-bazaar-commits] ./bzr-gtk/unstable r21: layout fixes

David Allouche david.allouche at canonical.com
Fri Apr 10 07:15:32 UTC 2009


------------------------------------------------------------
revno: 21
committer: David Allouche <david.allouche at canonical.com>
branch nick: bzrk
timestamp: Sat 2005-11-26 03:16:42 +0100
message:
  layout fixes
modified:
  graph.py
-------------- next part --------------
=== modified file 'graph.py'
--- a/graph.py	2005-11-26 02:03:28 +0000
+++ b/graph.py	2005-11-26 02:16:42 +0000
@@ -132,15 +132,17 @@
                     children_of_candidate = children[revisions[candidate_id]]
                     children_of_candidate.remove(revision)
                     break
+        # save the set of ancestors of that revision
         ancestor_ids = set(parent_ids)
         for parent_id in parent_ids:
             ancestor_ids.update(ancestor_ids_of[parent_id])
+        ancestor_ids_of[revid] = ancestor_ids
+        # discard ancestry data for revisions whose children are already done
         for parent_id in parent_ids + redundant_ids:
             pending_count = pending_count_of[parent_id] - 1
             pending_count_of[parent_id] = pending_count
             if pending_count == 0:
                 ancestor_ids_of[parent_id] = None
-        ancestor_ids_of[revid] = ancestor_ids
 
     return (sorted_revids, revisions, colours, children, parent_ids_of)
 



More information about the Pkg-bazaar-commits mailing list