~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-19 22:51:14 UTC
  • mto: This revision was merged to the branch mainline in revision 3008.
  • Revision ID: bialix@ukr.net-20071119225114-9ixbx1dkgu3mx5s3
fancy_rename: lower() test removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
243
243
            # source and target may be aliases of each other (e.g. on a
244
244
            # case-insensitive filesystem), so we may have accidentally renamed
245
245
            # source by when we tried to rename target
246
 
            if (not file_existed
247
 
                or e.errno not in (None, errno.ENOENT)
248
 
                or old.lower() != new.lower()):
 
246
            if not (file_existed and e.errno in (None, errno.ENOENT)):
249
247
                raise
250
248
    finally:
251
249
        if file_existed: