Patchwork D7650: match: normalize `cwd` early

login
register
mail settings
Submitter phabricator
Date Dec. 20, 2019, 2:52 p.m.
Message ID <5f020486f962f940c8adbb4619c37ad0@localhost.localdomain>
Download mbox | patch
Permalink /patch/44006/
State Not Applicable
Headers show

Comments

phabricator - Dec. 20, 2019, 2:52 p.m.
martinvonz updated this revision to Diff 18894.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7650?vs=18695&id=18894

BRANCH
  default

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
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