~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hashcache.py

  • Committer: Robert Collins
  • Date: 2005-09-28 05:37:53 UTC
  • mfrom: (1092.3.4)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050928053753-68e6e4c0642eccea
merge from symlink branch

Show diffs side-by-side

added added

removed removed

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