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

  • Committer: John Arbash Meinel
  • Date: 2007-12-05 18:47:51 UTC
  • mfrom: (3079 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3080.
  • Revision ID: john@arbash-meinel.com-20071205184751-58fi7xoj8ddox6ch
[merge] bzr.dev 3079

Show diffs side-by-side

added added

removed removed

Lines of Context:
1878
1878
 
1879
1879
    def rename(self, from_, to):
1880
1880
        """Rename a file from one path to another.  Functions like os.rename"""
1881
 
        os.rename(from_, to)
 
1881
        try:
 
1882
            os.rename(from_, to)
 
1883
        except OSError, e:
 
1884
            if e.errno in (errno.EEXIST, errno.ENOTEMPTY):
 
1885
                raise errors.FileExists(to, str(e))
 
1886
            raise
1882
1887
        self.past_renames.append((from_, to))
1883
1888
 
1884
1889
    def pre_delete(self, from_, to):