D8001: pathauditor: drop a redundant call to bytes.lower()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Jan 25 19:26:39 EST 2020
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
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)
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list