Unable to rename a file with 'mv' if a file exists with the same spelling, but different capitalisation

Bug #412021 reported by Chris Jones
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Richard Wilbur
Breezy
Triaged
Medium
Unassigned

Bug Description

Reproduction steps speak louder than words: (this is on a karmic laptop with ext4 as the filesystem)

-(cmsj@kiryo)-(/tmp)- mkdir casefail
-(cmsj@kiryo)-(/tmp)- cd casefail
-(cmsj@kiryo)-(/tmp/casefail)- touch foo{,1}
-(cmsj@kiryo)-(/tmp/casefail)- bzr init
Created a standalone tree (format: pack-0.92)
-(cmsj@kiryo)-(/tmp/casefail)- bzr add
adding foo
adding foo1
-(cmsj@kiryo)-(/tmp/casefail)- bzr commit -m "add files"
[10850] 2009-08-11 16:34:39.284 INFO: Committing to: /tmp/casefail/
Committing to: /tmp/casefail/
[10850] 2009-08-11 16:34:39.285 INFO: added foo
added foo
[10850] 2009-08-11 16:34:39.285 INFO: added foo1
added foo1
[10850] 2009-08-11 16:34:39.343 INFO: Committed revision 1.
Committed revision 1.
-(cmsj@kiryo)-(/tmp/casefail)- bzr st
-(cmsj@kiryo)-(/tmp/casefail)- bzr mv foo1 Foo
bzr: ERROR: Could not move foo1 => foo: foo is already versioned.
-(cmsj@kiryo)-(/tmp/casefail)-

This ought to be valid, and I am able to "bzr add" an unversioned file called Foo.

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

class Test412021(script.TestCaseWithTransportAndScript):

    def test_412021(self):
        story = """
bzr init
echo "foo" >foo
echo "foo1" >foo1
bzr add
bzr mv foo1 Foo
"""
        self.run_script(story)

Changed in bzr:
status: New → Confirmed
importance: Undecided → High
Jelmer Vernooij (jelmer)
tags: added: case-sensitivity mv
Changed in bzr:
assignee: nobody → Richard Wilbur (richard-wilbur)
milestone: none → 2.8b1
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → High
importance: High → Medium
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.