Patchwork D7650: match: normalize `cwd` early

login
register
mail settings
Submitter phabricator
Date Dec. 21, 2019, 2:42 p.m.
Message ID <7769e7782d0c7c8657f54555fb53d949@localhost.localdomain>
Download mbox | patch
Permalink /patch/44015/
State Not Applicable
Headers show

Comments

phabricator - Dec. 21, 2019, 2:42 p.m.
Closed by commit rHG5685ce2ea3bf: match: normalize `cwd` early (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/D7650?vs=18894&id=18903

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

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

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -229,6 +229,7 @@ 
     False
     """
     assert os.path.isabs(root)
+    cwd = util.normpath(os.path.join(root, cwd))
     normalize = _donormalize
     if icasefs:
         dirstate = ctx.repo().dirstate