/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/workingtree_4.py

add missing _must_be_locked and a better message

Show diffs side-by-side

added added

removed removed

Lines of Context:
1439
1439
                self._dirstate_locked = True
1440
1440
        self._locked += 1
1441
1441
 
 
1442
    def _must_be_locked(self):
 
1443
        if not self._locked:
 
1444
            raise errors.ObjectNotLocked(self)
 
1445
 
1442
1446
    @needs_read_lock
1443
1447
    def path2id(self, path):
1444
1448
        """Return the id for path in this tree."""