Possible Patch: Allow Renaming to Different Case

Martin Pool mbp at sourcefrog.net
Mon Apr 25 08:36:32 BST 2005

On Mon, 2005-04-25 at 09:30 +0200, Fredrik Lundh wrote:
> Michael Cook wrote:
> > My only two thoughts are to either check some unique  property
> > of the file to see if the two files are the same (say the inode number),
> > or to make a check to see if you are on a case-insensitive filesystem
> > and test the condition in the patch only if  that is true.

I think os.path.samefile might help.

> if you change the code to use os.path.normcase(s) instead of s.lower(),
> things should work properly on all platforms.
> (I see that none of my patches are in 0.0.4 :-(, so I'm not going to pre-
> pare a patch for this one...)

No offense was intended; I just haven't had time to merge them because
of the conferences.  I will put them in soon.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050425/05457c38/attachment.pgp 

More information about the bazaar mailing list