Rev 1250: Merge removal of last get_revision_paths call. in http://people.samba.org/bzr/jelmer/bzr-svn/svn-1.5

Jelmer Vernooij jelmer at samba.org
Mon Jun 23 21:40:18 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/svn-1.5

------------------------------------------------------------
revno: 1250
revision-id: jelmer at samba.org-20080623204016-19v374f8e2y61pnh
parent: jelmer at samba.org-20080623203816-ohwk923g5d3zp20y
parent: jelmer at samba.org-20080623203956-a5iht18bvxi437na
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: svn-1.5
timestamp: Mon 2008-06-23 22:40:16 +0200
message:
  Merge removal of last get_revision_paths call.
modified:
  repository.py                  repository.py-20060306123302-1f8c5069b3fe0265
    ------------------------------------------------------------
    revno: 1196.1.129
    revision-id: jelmer at samba.org-20080623203956-a5iht18bvxi437na
    parent: jelmer at samba.org-20080623185817-b02cn43lsmzbjqy8
    committer: Jelmer Vernooij <jelmer at samba.org>
    branch nick: 0.4
    timestamp: Mon 2008-06-23 22:39:56 +0200
    message:
      Use logwalker.iter_changes() rather than logwalker.get_revision_paths().
    modified:
      repository.py                  repository.py-20060306123302-1f8c5069b3fe0265
=== modified file 'repository.py'
--- a/repository.py	2008-06-23 19:45:02 +0000
+++ b/repository.py	2008-06-23 20:40:16 +0000
@@ -682,9 +682,8 @@
 
         pb = ui.ui_factory.nested_progress_bar()
         try:
-            for i in xrange(from_revnum, to_revnum+1):
-                pb.update("finding branches", i, to_revnum+1)
-                paths = self._log.get_revision_paths(i)
+            for (paths, i, revprops) in self._log.iter_changes([""], from_revnum, to_revnum):
+                pb.update("finding branches", i, to_revnum)
                 for p in sorted(paths.keys()):
                     if layout.is_branch(p) or layout.is_tag(p):
                         if paths[p][0] in ('R', 'D') and p in created_branches:




More information about the bazaar-commits mailing list