comparison tests/test-fix.t @ 44009:e685fac56693

match: resolve filesets against the passed `cwd`, not the current one This allows filesets to be resolved relative to `repo.root`, the same as other patterns are since f02d3c0eed18. The current example in contrib/ wasn't working from the tests directory because of this. Differential Revision: https://phab.mercurial-scm.org/D7570
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 06 Dec 2019 20:40:02 -0500
parents eebdd6709868
children 84a0102c05c7
comparison
equal deleted inserted replaced
44008:ac72e17457e5 44009:e685fac56693
1333 $TESTTMP/subprocesscwd 1333 $TESTTMP/subprocesscwd
1334 1334
1335 Apparently fixing p1() and its descendants doesn't include wdir() unless 1335 Apparently fixing p1() and its descendants doesn't include wdir() unless
1336 explicitly stated. 1336 explicitly stated.
1337 1337
1338 BROKEN: fileset matches aren't relative to repo.root for commits
1339
1340 $ hg fix -r '.::' 1338 $ hg fix -r '.::'
1341 $ hg cat -r . ../quux 1339 $ hg cat -r . ../quux
1342 quux 1340 quux
1343 $ hg cat -r tip ../quux 1341 $ hg cat -r tip ../quux
1344 quux 1342 fs: $TESTTMP/subprocesscwd
1345 $ cat ../quux 1343 $ cat ../quux
1346 quux 1344 quux
1347 1345
1348 Clean files are not fixed unless explicitly named 1346 Clean files are not fixed unless explicitly named
1349 $ echo 'dirty' > ../quux 1347 $ echo 'dirty' > ../quux
1350 1348
1351 BROKEN: fileset matches aren't relative to repo.root for wdir
1352
1353 $ hg fix --working-dir 1349 $ hg fix --working-dir
1354 $ cat ../quux 1350 $ cat ../quux
1355 dirty 1351 fs: $TESTTMP/subprocesscwd
1356 1352
1357 $ cd ../.. 1353 $ cd ../..
1358 1354
1359 Tools configured without a pattern are ignored. It would be too dangerous to 1355 Tools configured without a pattern are ignored. It would be too dangerous to
1360 run them on all files, because this might happen while testing a configuration 1356 run them on all files, because this might happen while testing a configuration