Rev 415: Merge simple_mainline so that we get test_history.py in http://bazaar.launchpad.net/~jameinel/loggerhead/page_loading

John Arbash Meinel john at arbash-meinel.com
Sat Mar 12 15:12:55 UTC 2011


At http://bazaar.launchpad.net/~jameinel/loggerhead/page_loading

------------------------------------------------------------
revno: 415 [merge]
revision-id: john at arbash-meinel.com-20110312151248-tcak3sy3hz1hycnd
parent: john at arbash-meinel.com-20110312132552-ojgebpxsmdlopwiw
parent: john at arbash-meinel.com-20100426212304-dnf9er2s4njhir6g
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: page_loading
timestamp: Sat 2011-03-12 16:12:48 +0100
message:
  Merge simple_mainline so that we get test_history.py
modified:
  loggerhead/history.py          history.py-20061211064342-102iqirsciyvgtcf-5
-------------- next part --------------
=== modified file 'loggerhead/history.py'
--- a/loggerhead/history.py	2011-03-12 13:25:52 +0000
+++ b/loggerhead/history.py	2011-03-12 15:12:48 +0000
@@ -327,7 +327,16 @@
         revid in revid_list.
         """
         if revid_list is None:
-            revid_list = [r[0][1] for r in self._rev_info]
+            # Just yield the mainline, starting at start_revid
+            revid = start_revid
+            is_null = bzrlib.revision.is_null
+            while not is_null(revid):
+                yield revid
+                parents = self._rev_info[self._rev_indices[revid]][2]
+                if not parents:
+                    return
+                revid = parents[0]
+            return
         revid_set = set(revid_list)
         revid = start_revid
 



More information about the bazaar-commits mailing list