##// END OF EJS Templates
tests: show that fileset patterns don't work with `fix` when not in repo root...
Matt Harbison -
r44400:9595b6a9 default
parent child Browse files
Show More
@@ -1303,10 +1303,13 b' reasonable with that.'
1303 > [fix]
1303 > [fix]
1304 > printcwd:command = "$PYTHON" -c "import os; print(os.getcwd())"
1304 > printcwd:command = "$PYTHON" -c "import os; print(os.getcwd())"
1305 > printcwd:pattern = relpath:foo/bar
1305 > printcwd:pattern = relpath:foo/bar
1306 > filesetpwd:command = "$PYTHON" -c "import os; print('fs: ' + os.getcwd())"
1307 > filesetpwd:pattern = set:**quux
1306 > EOF
1308 > EOF
1307
1309
1308 $ mkdir foo
1310 $ mkdir foo
1309 $ printf "bar\n" > foo/bar
1311 $ printf "bar\n" > foo/bar
1312 $ printf "quux\n" > quux
1310 $ hg commit -Aqm blah
1313 $ hg commit -Aqm blah
1311
1314
1312 $ hg fix -w -r . foo/bar
1315 $ hg fix -w -r . foo/bar
@@ -1318,15 +1321,39 b' reasonable with that.'
1318 $ cd foo
1321 $ cd foo
1319
1322
1320 $ hg fix -w -r . bar
1323 $ hg fix -w -r . bar
1321 $ hg cat -r tip bar
1324 $ hg cat -r tip bar ../quux
1322 $TESTTMP/subprocesscwd
1325 $TESTTMP/subprocesscwd
1323 $ cat bar
1326 quux
1327 $ cat bar ../quux
1324 $TESTTMP/subprocesscwd
1328 $TESTTMP/subprocesscwd
1329 quux
1325 $ echo modified > bar
1330 $ echo modified > bar
1326 $ hg fix -w bar
1331 $ hg fix -w bar
1327 $ cat bar
1332 $ cat bar
1328 $TESTTMP/subprocesscwd
1333 $TESTTMP/subprocesscwd
1329
1334
1335 Apparently fixing p1() and its descendants doesn't include wdir() unless
1336 explicitly stated.
1337
1338 BROKEN: fileset matches aren't relative to repo.root for commits
1339
1340 $ hg fix -r '.::'
1341 $ hg cat -r . ../quux
1342 quux
1343 $ hg cat -r tip ../quux
1344 quux
1345 $ cat ../quux
1346 quux
1347
1348 Clean files are not fixed unless explicitly named
1349 $ echo 'dirty' > ../quux
1350
1351 BROKEN: fileset matches aren't relative to repo.root for wdir
1352
1353 $ hg fix --working-dir
1354 $ cat ../quux
1355 dirty
1356
1330 $ cd ../..
1357 $ cd ../..
1331
1358
1332 Tools configured without a pattern are ignored. It would be too dangerous to
1359 Tools configured without a pattern are ignored. It would be too dangerous to
General Comments 0
You need to be logged in to leave comments. Login now