From patchwork Tue Oct 15 12:58:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7100: tests: add test showing that fixer patterns are currently relative to $PWD From: phabricator X-Patchwork-Id: 42351 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 15 Oct 2019 12:58:29 +0000 Closed by commit rHG5272bd7e7517: tests: add test showing that fixer patterns are currently relative to $PWD (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/D7100?vs=17155&id=17168 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7100/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7100 AFFECTED FILES tests/test-fix.t CHANGE DETAILS To: martinvonz, #hg-reviewers, pulkit Cc: mercurial-devel diff --git a/tests/test-fix.t b/tests/test-fix.t --- a/tests/test-fix.t +++ b/tests/test-fix.t @@ -1298,7 +1298,7 @@ $ cat >> .hg/hgrc < [fix] > printcwd:command = "$PYTHON" -c "import os; print(os.getcwd())" - > printcwd:pattern = path:foo/bar + > printcwd:pattern = relpath:foo/bar > EOF $ mkdir foo @@ -1318,6 +1318,10 @@ $TESTTMP/subprocesscwd $ cat bar $TESTTMP/subprocesscwd + $ echo modified > bar + $ hg fix -w bar + $ cat bar + modified $ cd ../.. @@ -1373,7 +1377,7 @@ $ cd bar $ hg fix --working-dir --config "fix.cooltool:command=echo fixed" \ - > --config "fix.cooltool:pattern=rootglob:**" + > --config "fix.cooltool:pattern=glob:**" $ cd .. $ cat foo/file @@ -1409,7 +1413,7 @@ $ hg fix --working-dir foo bar baz \ > --config "fix.changedlines:command=\"$PYTHON\" print.py \"Line ranges:\"" \ > --config 'fix.changedlines:linerange="{first} through {last}"' \ - > --config 'fix.changedlines:pattern=rootglob:**' \ + > --config 'fix.changedlines:pattern=glob:**' \ > --config 'fix.changedlines:skipclean=false' $ cat foo