~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-10 13:16:12 UTC
  • mto: This revision was merged to the branch mainline in revision 3008.
  • Revision ID: bialix@ukr.net-20071110131612-4s55g3rodrp41uwh
Rename on Windows is able to change filename case. (#77740)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1318
1318
                only_change_inv = True
1319
1319
            elif self.has_filename(from_rel) and not self.has_filename(to_rel):
1320
1320
                only_change_inv = False
 
1321
            elif (sys.platform == 'win32'
 
1322
                and from_rel.lower() == to_rel.lower()
 
1323
                and self.has_filename(from_rel)):
 
1324
                only_change_inv = False
1321
1325
            else:
1322
1326
                # something is wrong, so lets determine what exactly
1323
1327
                if not self.has_filename(from_rel) and \