3 # Some tests for 'darcs unpull'
6 use Test
::More
'no_plan';
16 darcs
"record -a -m 'adding a' a.txt";
20 darcs
"record -a -m 'adding b' b.txt";
23 echo_to_darcs
("unpull -p add","an"),
25 "additional confirmation is given when 'all' option is selected");
28 echo_to_darcs
("unpull --last 1","n"),
30 "unpull --last 1 gives expected result");
33 # Add a patch that depends on 'adding a' and try to unpull 'adding a'
36 darcs
"record -a -m 'modifying a' a.txt";
39 echo_to_darcs
("unpull -p 'adding a'","n"),
40 qr/modifying a/ && qr/No patches selected/,
41 "unpull asks about depending patches");