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

abort write_group when an unexpected exception occurs so we see the latter

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        try:
83
83
            self._process(command_iter)
84
84
        finally:
 
85
            # If an unhandled exception occurred, abort the write group
 
86
            if self.repo is not None and self.repo.is_in_write_group():
 
87
                self.repo.abort_write_group()
 
88
            # Release the locks
85
89
            if self.working_tree is not None:
86
90
                self.working_tree.unlock()
87
91
            elif self.branch is not None: