Patchwork windows: add comment in normcase()

login
register
mail settings
Submitter Adrian Buehlmann
Date May 14, 2015, 9:40 a.m.
Message ID <2baa4e1644df6e601697.1431596449@kork>
Download mbox | patch
Permalink /patch/9072/
State Accepted
Headers show

Comments

Adrian Buehlmann - May 14, 2015, 9:40 a.m.
# HG changeset patch
# User Adrian Buehlmann <adrian@cadifra.com>
# Date 1431596256 -7200
# Node ID 2baa4e1644df6e601697f6266e1d65e47189f1d7
# Parent  23569147cb815cbf27dca415289bc9cdc254583f
windows: add comment in normcase()

see also 3c5e818ac679
Pierre-Yves David - May 14, 2015, 6:30 p.m.
On 05/14/2015 02:40 AM, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian@cadifra.com>
> # Date 1431596256 -7200
> # Node ID 2baa4e1644df6e601697f6266e1d65e47189f1d7
> # Parent  23569147cb815cbf27dca415289bc9cdc254583f
> windows: add comment in normcase()
>
> see also 3c5e818ac679

This one is pushed to the clowncopter. Thanks.

Patch

diff --git a/mercurial/windows.py b/mercurial/windows.py
--- a/mercurial/windows.py
+++ b/mercurial/windows.py
@@ -139,7 +139,7 @@ 
     return pconvert(os.path.normpath(path))
 
 def normcase(path):
-    return encoding.upper(path)
+    return encoding.upper(path) # NTFS compares via upper()
 
 # see posix.py for definitions
 normcasespec = encoding.normcasespecs.upper