changeset 44180:d84420232492

pathauditor: drop a redundant call to bytes.lower() `_lowerclean(s)` calls `s.lower()`, so we don't need to do that before calling it. Differential Revision: https://phab.mercurial-scm.org/D8001
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 24 Jan 2020 17:10:45 -0800
parents 293cab97a766
children 3fb39dc2e356
files mercurial/pathutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pathutil.py	Fri Jan 24 15:18:19 2020 -0800
+++ b/mercurial/pathutil.py	Fri Jan 24 17:10:45 2020 -0800
@@ -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)