~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: 2007-11-20 17:46:30 UTC
  • mfrom: (2978.8.5 mv.change.case)
  • Revision ID: pqm@pqm.ubuntu.com-20071120174630-11911fovhobm06cp
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 \