Mercurial > hg
diff tests/test-purge @ 6757:55c71226eceb
purge: cleanup
- remove casefolding check, no longer needed
- fold error function into remove
- simplify eol logic
- remove force logic and parameters
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 18:44:54 -0500 |
parents | 98d5f9b95699 |
children | b777dd8f7836 |
line wrap: on
line diff
--- a/tests/test-purge Thu Jun 26 15:55:23 2008 -0500 +++ b/tests/test-purge Thu Jun 26 18:44:54 2008 -0500 @@ -83,23 +83,15 @@ rm r1 # hide error messages to avoid changing the output when the text changes hg purge -p 2> /dev/null -if [ $? -ne 0 ]; then - echo "refused to run" -fi -if [ -f untracked_file ]; then - echo "untracked_file still around" -fi -hg purge -p --force +hg st + +hg purge -p hg purge -v 2> /dev/null -if [ $? -ne 0 ]; then - echo "refused to run" -fi -if [ -f untracked_file ]; then - echo "untracked_file still around" -fi -hg purge -v --force +hg st + +hg purge -v hg revert --all --quiet -ls +hg st -a echo '% tracked file in ignored directory (issue621)' echo directory >> .hgignore