[Pkg-bazaar-commits] ./bzr/unstable r434: doc

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:19:50 UTC 2009


------------------------------------------------------------
revno: 434
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Tue 2005-05-10 16:21:07 +1000
message:
  doc
modified:
  bzrlib/statcache.py
-------------- next part --------------
=== modified file 'bzrlib/statcache.py'
--- a/bzrlib/statcache.py	2005-05-10 06:17:46 +0000
+++ b/bzrlib/statcache.py	2005-05-10 06:21:07 +0000
@@ -51,6 +51,9 @@
 
 At the moment this is stored in a simple textfile; it might be nice
 to use a tdb instead.
+
+The cache is represented as a map from file_id to a tuple of (file_id,
+sha1, path, size, mtime, ctime, ino, dev).
 """
 
 
@@ -69,7 +72,7 @@
             fs.st_ctime, fs.st_ino, fs.st_dev)
 
 
-def write_cache(branch, entry_iter):
+def _write_cache(branch, entry_iter):
     from atomicfile import AtomicFile
     
     outf = AtomicFile(branch.controlfilename('work-cache'), 'wb', 'utf-8')
@@ -164,6 +167,6 @@
            % (hardcheck, dirty, len(cache)))
         
     if dirty:
-        write_cache(branch, cache.itervalues())
+        _write_cache(branch, cache.itervalues())
 
     return cache



More information about the Pkg-bazaar-commits mailing list