/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 breezy/tests/per_workingtree/test_readonly.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        # Make it readonly, and do some operations and then unlock
105
105
        self.set_dirs_readonly('tree')
106
106
 
107
 
        tree.lock_read()
108
 
        try:
 
107
        with tree.lock_read():
109
108
            if hack_dirstate:
110
109
                tree._dirstate._cutoff_time = self._custom_cutoff_time()
111
110
            # Make sure we check all the files
112
111
            for path in tree.all_versioned_paths():
113
112
                size = tree.get_file_size(path)
114
113
                sha1 = tree.get_file_sha1(path)
115
 
        finally:
116
 
            tree.unlock()