Mercurial > hg
changeset 43226:5272bd7e7517
tests: add test showing that fixer patterns are currently relative to $PWD
Differential Revision: https://phab.mercurial-scm.org/D7100
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 12 Oct 2019 11:30:20 -0700 |
parents | 8343070ed758 |
children | f02d3c0eed18 |
files | tests/test-fix.t |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-fix.t Mon Oct 14 12:55:40 2019 -0400 +++ b/tests/test-fix.t Sat Oct 12 11:30:20 2019 -0700 @@ -1298,7 +1298,7 @@ $ cat >> .hg/hgrc <<EOF > [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