~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:25:54 UTC
  • mfrom: (1185.1.42)
  • mto: (1092.2.18)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050928052554-beb985505f77ea6a
update symlink branch to integration

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: