##// END OF EJS Templates
tests: add test showing that fixer patterns are currently relative to $PWD...
Martin von Zweigbergk -
r43500:5272bd7e default
parent child Browse files
Show More
@@ -1298,7 +1298,7 b' reasonable with that.'
1298 1298 $ cat >> .hg/hgrc <<EOF
1299 1299 > [fix]
1300 1300 > printcwd:command = "$PYTHON" -c "import os; print(os.getcwd())"
1301 > printcwd:pattern = path:foo/bar
1301 > printcwd:pattern = relpath:foo/bar
1302 1302 > EOF
1303 1303
1304 1304 $ mkdir foo
@@ -1318,6 +1318,10 b' reasonable with that.'
1318 1318 $TESTTMP/subprocesscwd
1319 1319 $ cat bar
1320 1320 $TESTTMP/subprocesscwd
1321 $ echo modified > bar
1322 $ hg fix -w bar
1323 $ cat bar
1324 modified
1321 1325
1322 1326 $ cd ../..
1323 1327
@@ -1373,7 +1377,7 b' The way we invoke matching must not proh'
1373 1377
1374 1378 $ cd bar
1375 1379 $ hg fix --working-dir --config "fix.cooltool:command=echo fixed" \
1376 > --config "fix.cooltool:pattern=rootglob:**"
1380 > --config "fix.cooltool:pattern=glob:**"
1377 1381 $ cd ..
1378 1382
1379 1383 $ cat foo/file
@@ -1409,7 +1413,7 b' changes.'
1409 1413 $ hg fix --working-dir foo bar baz \
1410 1414 > --config "fix.changedlines:command=\"$PYTHON\" print.py \"Line ranges:\"" \
1411 1415 > --config 'fix.changedlines:linerange="{first} through {last}"' \
1412 > --config 'fix.changedlines:pattern=rootglob:**' \
1416 > --config 'fix.changedlines:pattern=glob:**' \
1413 1417 > --config 'fix.changedlines:skipclean=false'
1414 1418
1415 1419 $ cat foo
General Comments 0
You need to be logged in to leave comments. Login now