9 cat > _darcs
/prefs
/defaults
<<.
15 # add three depending patches for file 'a'
16 # expect no dependency questions
17 # 'q' will abort and cause future failure if an unexpected dependency is asked
20 echo q | darcs rec
-am a0
23 echo q | darcs rec
-am a1
26 echo q | darcs rec
-am a2
29 # add some patches for file 'b'
30 # expect no dependency questions for file 'b',
31 # but every time expect questions for the three patches of file 'a'
32 # every 'n' should continue to ask about the next patch
33 # the first 'y' should make all following dependencies of 'a' implicit and stop asking
34 # 'q' will abort and cause future failure if an unexpected dependency is asked
38 echo n
/n
/n
/q |
tr / \\012 | darcs rec
-am b0
42 echo n
/n
/y
/q |
tr / \\012 | darcs rec
-am b1
43 darcs ann
-p b1 |
grep '^\[a0'
46 echo n
/y
/q |
tr / \\012 | darcs rec
-am b2
47 darcs ann
-p b2 |
grep '^\[a1'
50 echo y
/q |
tr / \\012 | darcs rec
-am b3
51 darcs ann
-p b3 |
grep '^\[a2'