4 # Some tests for the output of changes when combined with move.
6 not
() { "$@" && exit 1 ||
:; }
15 darcs record
-m 'add foo' -a
18 darcs record
-m 'add d' -a
20 darcs record
-m 'mv foo to d' -a
22 darcs record
-m 'mv d to directory' -a
23 echo 'How beauteous mankind is' > directory
/foo
24 darcs record
-m 'modify directory/foo' -a
25 darcs changes directory
/foo
> log
27 grep 'mv foo to d' log
28 echo 'O brave new world' > directory
/foo
29 # darcs should also take unrecorded moves into account
30 darcs
mv directory
/foo directory
/bar
31 darcs changes directory
/foo
> log
32 grep 'mv foo to d' log
33 echo 'That has such people in it' > directory
/foo
34 darcs add directory
/foo
35 darcs record
-m 'mv foo then add new foo' -a
36 darcs annotate directory
/bar
> log
37 grep 'How beauteous mankind is' log
38 grep 'O brave new world' log