Rev 1852: More efficient fetching of tags. in file:///data/jelmer/bzr-svn/trunk/

Jelmer Vernooij jelmer at samba.org
Sun Sep 7 21:51:47 BST 2008


At file:///data/jelmer/bzr-svn/trunk/

------------------------------------------------------------
revno: 1852
revision-id: jelmer at samba.org-20080907205145-ther8guzaqf8lcw3
parent: jelmer at samba.org-20080907023412-vkilct3zm0dr3en2
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sun 2008-09-07 22:51:45 +0200
message:
  More efficient fetching of tags.
modified:
  repository.py                  repository.py-20060306123302-1f8c5069b3fe0265
=== modified file 'repository.py'
--- a/repository.py	2008-09-07 02:34:12 +0000
+++ b/repository.py	2008-09-07 20:51:45 +0000
@@ -593,13 +593,14 @@
             tags = {}
         assert from_revnum <= to_revnum
         pb = ui.ui_factory.nested_progress_bar()
-        # FIXME: Use something compatible with CachingLogWalker
-        if project is None or getattr(self._log, "cache", None) is not None:
+        if project is None:
             prefixes = [""]
         else:
             prefixes = layout.get_project_prefixes(project)
+
         try:
-            for (paths, revnum, revprops) in self._log.iter_changes(prefixes, from_revnum, to_revnum, pb=pb):
+            entries = list(self._log.iter_changes(prefixes, to_revnum, from_revnum, pb=pb))
+            for (paths, revnum, revprops) in reversed(entries):
                 if revprops is None:
                     continue
                 if (self.transport.has_capability("log-revprops") and 




More information about the bazaar-commits mailing list