Rev 18: Another quick fix to not have to go to the repository for the ancestry in http://bzr.arbash-meinel.com/plugins/test_graph

John Arbash Meinel john at arbash-meinel.com
Tue Dec 18 20:51:52 GMT 2007


At http://bzr.arbash-meinel.com/plugins/test_graph

------------------------------------------------------------
revno: 18
revision-id:john at arbash-meinel.com-20071218204921-05jg95his26fj97y
parent: john at arbash-meinel.com-20071218204527-m7pv9htd8lkcay4c
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: test_graph
timestamp: Tue 2007-12-18 14:49:21 -0600
message:
  Another quick fix to not have to go to the repository for the ancestry
modified:
  graph_testing.py               graph_testing.py-20071210194758-1pwa1q7e3wnjf418-2
-------------- next part --------------
=== modified file 'graph_testing.py'
--- a/graph_testing.py	2007-12-18 20:45:27 +0000
+++ b/graph_testing.py	2007-12-18 20:49:21 +0000
@@ -163,14 +163,9 @@
                 # Check to see that the node really is in the ancestry of the
                 # others
                 non_heads = set(parent_ids) - heads
-                head_ancestries = {}
-                for head in heads:
-                    ancestry = set(a_branch.repository.get_ancestry(head,
-                                                        topo_sorted=False))
-                    head_ancestries[head] = ancestry
                 for non_head in non_heads:
                     for head in heads:
-                        ancestry = head_ancestries[head]
+                        ancestry = self.ancestries[head]
                         if non_head in ancestry:
                             break
                     else:



More information about the bazaar-commits mailing list