Rev 1844: Make fetch_revisions private. in file:///data/jelmer/bzr-svn/trunk/

Jelmer Vernooij jelmer at samba.org
Sun Sep 7 01:00:11 BST 2008


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

------------------------------------------------------------
revno: 1844
revision-id: jelmer at samba.org-20080907000007-lmtamefi1t1c2k8a
parent: jelmer at samba.org-20080906235421-wnlhzzu7mxxae9cc
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sun 2008-09-07 02:00:07 +0200
message:
  Make fetch_revisions private.
modified:
  logwalker.py                   logwalker.py-20060621215743-c13fhfnyzh1xzwh2-1
=== modified file 'logwalker.py'
--- a/logwalker.py	2008-09-06 13:34:47 +0000
+++ b/logwalker.py	2008-09-07 00:00:07 +0000
@@ -238,7 +238,7 @@
         """
         assert isinstance(path, str)
         assert isinstance(revnum, int) and revnum >= 0
-        self.fetch_revisions(revnum)
+        self._fetch_revisions(revnum)
 
         self.mutter("latest change: %r:%r", path, revnum)
         revnum = self.cache.find_latest_change(path.strip("/"), revnum)
@@ -273,7 +273,7 @@
 
         assert from_revnum >= to_revnum or path == ""
 
-        self.fetch_revisions(max(from_revnum, to_revnum), pb=pb)
+        self._fetch_revisions(max(from_revnum, to_revnum), pb=pb)
         i = 0
 
         while ((not ascending and revnum >= to_revnum) or
@@ -312,13 +312,13 @@
     def get_revision_paths(self, revnum):
         if revnum == 0:
             return {'': ('A', None, -1)}
-        self.fetch_revisions(revnum)
+        self._fetch_revisions(revnum)
 
         return self.cache.get_revision_paths(revnum)
 
     def revprop_list(self, revnum):
         self.mutter('revprop list: %d' % revnum)
-        self.fetch_revisions(revnum)
+        self._fetch_revisions(revnum)
 
         if revnum > 0:
             has_all_revprops = self.cache.has_all_revprops(revnum)
@@ -339,7 +339,7 @@
         self.cache.commit()
         return revprops
 
-    def fetch_revisions(self, to_revnum=None, pb=None):
+    def _fetch_revisions(self, to_revnum=None, pb=None):
         """Fetch information about all revisions in the remote repository
         until to_revnum.
 




More information about the bazaar-commits mailing list