comparison tests/test-addremove.t @ 33340:dd050fc04cc9

test-addremove: conditionalize output instead of tests
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 08 Jul 2017 18:37:41 -0400
parents d8e0c591781c
children feecfefeba25
comparison
equal deleted inserted replaced
33339:ad230d56db25 33340:dd050fc04cc9
27 $ cd .. 27 $ cd ..
28 $ hg forget foo 28 $ hg forget foo
29 $ hg -v addremove 29 $ hg -v addremove
30 adding foo 30 adding foo
31 $ hg forget foo 31 $ hg forget foo
32 #if windows 32
33 $ hg -v addremove nonexistent 33 $ hg -v addremove nonexistent
34 nonexistent: The system cannot find the file specified 34 nonexistent: The system cannot find the file specified (windows !)
35 nonexistent: No such file or directory (no-windows !)
35 [1] 36 [1]
36 #else 37
37 $ hg -v addremove nonexistent
38 nonexistent: No such file or directory
39 [1]
40 #endif
41 $ cd .. 38 $ cd ..
42 39
43 $ hg init subdir 40 $ hg init subdir
44 $ cd subdir 41 $ cd subdir
45 $ mkdir dir 42 $ mkdir dir
85 $ hg addremove -s 50 82 $ hg addremove -s 50
86 adding b 83 adding b
87 adding c 84 adding c
88 85
89 $ rm c 86 $ rm c
90 #if windows 87
91 $ hg ci -A -m "c" nonexistent 88 $ hg ci -A -m "c" nonexistent
92 nonexistent: The system cannot find the file specified 89 nonexistent: The system cannot find the file specified (windows !)
90 nonexistent: No such file or directory (no-windows !)
93 abort: failed to mark all new/missing files as added/removed 91 abort: failed to mark all new/missing files as added/removed
94 [255] 92 [255]
95 #else 93
96 $ hg ci -A -m "c" nonexistent
97 nonexistent: No such file or directory
98 abort: failed to mark all new/missing files as added/removed
99 [255]
100 #endif
101 $ hg st 94 $ hg st
102 ! c 95 ! c
103 $ cd .. 96 $ cd ..