4 # Testing amend-record.
6 not
() { "$@" && exit 1 ||
:; }
9 # set up the repository
20 darcs record
-a -m add_foo
21 echo 'another line' > foo
22 echo y | darcs amend
-a foo |
grep -i 'amending changes'
23 darcs changes
-v |
grep 'another line'
24 # amend-record of removed file
32 darcs record
-a -m add_bars
34 echo y | darcs amend
-a |
grep -i 'finished amending'
35 # Special case: patch is empty after amend
37 echo 'another line' >> foo
38 darcs record
-a -m add_line foo |
grep -i 'finished recording'
40 echo y | darcs amend
-a foo |
grep -i 'amending changes'
41 # Amend --author, -m, etc
42 echo "another line" >> foo
43 echo y | darcs amend
-a -m new_name foo |
grep -i 'amending changes'
44 darcs changes
--last=1 |
grep new_name
45 echo "another line" >> foo
46 echo y | darcs amend
-a -m new_name
-A new_author foo |
grep -i 'amending changes'
47 darcs changes
--last=1 |
grep new_author