~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-11-03 02:35:48 UTC
  • mfrom: (2067.3.7 cleanup-errors)
  • Revision ID: pqm@pqm.ubuntu.com-20061103023548-12e702bb911c4be2
(mbp) deprecate BzrNewError, change to using .internal_error on exceptions, etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1051
1051
                    osutils.rename(self.abspath(f), self.abspath(dest_path))
1052
1052
                except OSError, e:
1053
1053
                    raise BzrError("failed to rename %r to %r: %s" %
1054
 
                                   (f, dest_path, e[1]),
1055
 
                            ["rename rolled back"])
 
1054
                                   (f, dest_path, e[1]))
1056
1055
        except:
1057
1056
            # restore the inventory on error
1058
1057
            self._set_inventory(orig_inv, dirty=original_modified)
1104
1103
        except OSError, e:
1105
1104
            inv.rename(file_id, from_parent, from_name)
1106
1105
            raise BzrError("failed to rename %r to %r: %s"
1107
 
                    % (from_abs, to_abs, e[1]),
1108
 
                    ["rename rolled back"])
 
1106
                    % (from_abs, to_abs, e[1]))
1109
1107
        self._write_inventory(inv)
1110
1108
 
1111
1109
    @needs_read_lock