~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

(andrew,
 for Danny van Heumen) 'bzr revert' no longer takes a branch lock (#498409)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4045
4045
    def run(self, revision=None, no_backup=False, file_list=None,
4046
4046
            forget_merges=None):
4047
4047
        tree, file_list = tree_files(file_list)
4048
 
        tree.lock_write()
 
4048
        tree.lock_tree_write()
4049
4049
        try:
4050
4050
            if forget_merges:
4051
4051
                tree.set_parent_ids(tree.get_parent_ids()[:1])