Commit Graph

12 Commits

Author SHA1 Message Date
Simon Heimberg
180e520fa6 tests: do not skip code-checking on some whole files
In filterpyflakes the term no-check-code was probably by accident.
In the test the intention was not to skip the entire file but only one
line. But any skipping seems to be unnecessary since a longer time.
2013-07-01 06:50:58 +02:00
Mads Kiilerich
00be1ef6f3 rm: drop misleading 'use -f' hint for the rm --after 'not removing' warning
A warning mentioning 'forgetting' or 'recording delete' would be more correct
than 'not removing' but also more confusing.
2012-12-09 23:33:16 +01:00
Adrian Buehlmann
5b12c1cd53 test-remove: adapt to differing error message on Windows
On Windows, this part of the test failed with

     $ hg rm --after nosuch
  -  nosuch: No such file or directory
  +  nosuch: The system cannot find the file specified
     [1]

Fixed by glob-ing away the error message if the test is run on Windows
(see for example test-bad-pull.t line 3 for precedent).

test-remove.t now passes on Windows.
2012-10-24 11:51:24 +02:00
Adrian Buehlmann
36604dded8 test-remove: fix \ vs. / issues on Windows
This part of the test failed with

     $ hg rm --after d1
  -  removing d1/a
  +  removing d1\a

on Windows.
2012-10-24 11:38:31 +02:00
Matt Mackall
f5bc386500 remove: don't return error on directories with tracked files
Spotted by Sergey <sergemp@mail.ru>
2012-10-22 16:06:47 -05:00
Mads Kiilerich
fa1c4e5ebe tests: add missing trailing 'cd ..'
Many tests didn't change back from subdirectories at the end of the tests ...
and they don't have to. The missing 'cd ..' could always be added when another
test case is added to the test file.

This change do that tests (99.5%) consistently end up in $TESTDIR where they
started, thus making it simpler to extend them or move them around.
2012-06-11 01:40:51 +02:00
Adrian Buehlmann
c425afcd4c test-remove-new: integrate into test-remove.t 2012-06-10 18:28:42 +02:00
Mads Kiilerich
8c22a0ec28 tests: make (glob) on windows accept \ instead of /
Globbing is usually used for filenames, so on windows it is reasonable and very
convenient that glob patterns accepts '\' or '/' when the pattern specifies
'/'.
2011-11-07 03:25:10 +01:00
Matt Mackall
35b02109ec remove: suggest forget to undo adds 2011-09-16 17:53:58 -05:00
Matt Mackall
ac660e9f65 tests: cleanup exit code handling in unified tests 2010-09-21 16:00:02 -05:00
Martin Geisler
516e74e526 merge with stable 2010-09-01 12:28:34 +02:00
Nicolas Dumazet
789cb13602 tests: unify test-remove 2010-08-30 13:02:54 +09:00