Renaming file on case-insensitive file system cause "removed" status for older filename

Bug #324312 reported by Danil
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

Bazaar version: 1.11
Operating system: Windows XP SP2
File system: NTFS

Proposition

Say, I have a file 'Readme.txt' in my working copy. When I rename a file, for example to 'README.TXT', 'bzr status' command will give me a status for 'Readme.txt' as 'removed' and 'README.TXT' as 'unknown'. So, I need to add 'README.TXT' as new file. But, the status of 'Readme.txt' will be 'removed' regardless of that I touch or commit all changes to working copy.

I propose to add a configuration option (this must be an option in .cfg file, instead of command line - for convenience). The option should work on case-insensitive file systems. The option must turn on/off a specific behavior:
ON - when the file changes it's name only by changes in it's letters case (upper or lower), the bzr should mark the file as 'renamed'
OFF - default behavior, as in version 1.11

Revision history for this message
Tim Lind (timlind) wrote :

Just to emphasize that the old file will remain in the removed list and diff through all the commits, even after removing (with --keep) the later file. How can I get to commit this old file's removal properly?

Revision history for this message
Vincent Ladeuil (vila) wrote :

Basically you're renaming the file and I suppose you would like its history to be retained across this rename.
   bzr mv Readme.txt README.TXT
should just do that. You're not removing that file and adding a new one.

Can you confirm it address your problem ?

Changed in bzr:
status: New → Incomplete
Revision history for this message
Martin Pool (mbp) wrote :

vila, I think you're right that will work as a workaround. The thing is, on Windows this isn't necessarily really a rename, and it may sometimes happen almost accidentally. So I think an option to handle it might be reasonable.

Changed in bzr:
status: Incomplete → Confirmed
importance: Undecided → Low
Jelmer Vernooij (jelmer)
tags: added: case-sensitivity filesystem
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.