/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_readonly.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-19 23:33:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2202.
  • Revision ID: john@arbash-meinel.com-20061219233317-9yizwfy0afs1dvpy
Update from Aaron

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
        # XXX: *Ugly* *ugly* hack, we need the hashcache to think it is out of
87
87
        # date, but we don't want to actually wait 3 seconds doing nothing.
88
 
 
89
 
        the_hashcache = getattr(tree, '_hashcache')
90
 
        if (the_hashcache is not None
91
 
            and isinstance(the_hashcache, hashcache.HashCache)):
92
 
            the_hashcache._cutoff_time = self._custom_cutoff_time
 
88
        # WorkingTree formats that don't have a _hashcache should update this
 
89
        # test so that they pass. For now, we just assert that we have the
 
90
        # right type of objects available.
 
91
        the_hashcache = getattr(tree, '_hashcache', None)
 
92
        self.assertNotEqual(None, the_hashcache)
 
93
        self.assertIsInstance(the_hashcache, hashcache.HashCache)
 
94
        the_hashcache._cutoff_time = self._custom_cutoff_time
93
95
 
94
96
        # Make it a little dirty
95
97
        self.build_tree_contents([('tree/a', 'new contents of a\n')])