~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hashcache.py

  • Committer: Robert Collins
  • Date: 2005-11-13 18:57:26 UTC
  • mfrom: (1185.31.9)
  • Revision ID: robertc@robertcollins.net-20051113185726-39ede10d746eee6d
Merge Johns current integration work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
        try:
225
225
            inf = file(fn, 'rb', buffering=65000)
226
226
        except IOError, e:
227
 
            mutter("failed to open %s: %s" % (fn, e))
 
227
            mutter("failed to open %s: %s", fn, e)
228
228
            # better write it now so it is valid
229
229
            self.needs_write = True
230
230
            return
232
232
 
233
233
        hdr = inf.readline()
234
234
        if hdr != CACHE_HEADER:
235
 
            mutter('cache header marker not found at top of %s; discarding cache'
236
 
                   % fn)
 
235
            mutter('cache header marker not found at top of %s;'
 
236
                   ' discarding cache', fn)
237
237
            self.needs_write = True
238
238
            return
239
239