D7650: match: normalize `cwd` early

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Dec 20 09:52:56 EST 2019


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

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



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


More information about the Mercurial-devel mailing list