3 # For issue588, "amend-record --look-for-adds end up with two "addfile" entries"
8 darcs init
--repodir temp1
10 # Setup f with contents foo.
12 darcs add
--repodir temp1 f
13 darcs rec
--repodir temp1
-am p1
15 # Remove f, and amend p1, but only the hunk not the rmfile.
16 # Here we use look-for-adds to trigger the bug
18 echo yyd | darcs amend-record
--repodir temp1
--look-for-adds
20 darcs changes
--repodir temp1
--last 1 -v
22 echo show the buggy pending
23 cat temp
1/_darcs
/patches
/pending
26 echo y | darcs amend-record
--repodir temp1
--all
28 darcs changes
--repodir temp1
--last 1 -v
30 darcs check
--repodir temp1
--no-test