~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hashcache.py

  • Committer: Robert Collins
  • Date: 2005-08-25 12:46:42 UTC
  • mfrom: (1116)
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050825124642-45ed1cd74db10370
merge from mpool

Show diffs side-by-side

added added

removed removed

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