From patchwork Sun Jan 26 00:26:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D8001: pathauditor: drop a redundant call to bytes.lower() From: phabricator X-Patchwork-Id: 44668 Message-Id: <2eb0430a104aaeefcbfe5cba116e06e0@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Sun, 26 Jan 2020 00:26:39 +0000 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 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)