Patchwork D8001: pathauditor: drop a redundant call to bytes.lower()

login
register
mail settings
Submitter phabricator
Date Jan. 26, 2020, 12:26 a.m.
Message ID <2eb0430a104aaeefcbfe5cba116e06e0@localhost.localdomain>
Download mbox | patch
Permalink /patch/44668/
State Not Applicable
Headers show

Comments

phabricator - Jan. 26, 2020, 12:26 a.m.
Closed by commit rHGd84420232492: pathauditor: drop a redundant call to bytes.lower() (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8001?vs=19592&id=19618

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8001/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8001

AFFECTED FILES
  mercurial/pathutil.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/pathutil.py b/mercurial/pathutil.py
--- a/mercurial/pathutil.py
+++ b/mercurial/pathutil.py
@@ -84,7 +84,7 @@ 
                         _(b"path contains illegal component: %s") % path
                     )
         if b'.hg' in _lowerclean(path):
-            lparts = [_lowerclean(p.lower()) for p in parts]
+            lparts = [_lowerclean(p) for p in parts]
             for p in b'.hg', b'.hg.':
                 if p in lparts[1:]:
                     pos = lparts.index(p)