12 # Check that prompting works as expected when answering yes...
13 echo yes | darcs whatsnew
-s --prehook 'touch prehook-ran'
17 # Check that prompting works as expected when answering no...
18 echo no | darcs whatsnew
-s --prehook 'touch prehook-ran'
21 # Check that prompting works as expected with defaults (yes)...
22 echo ALL
--prehook touch prehook-ran
> _darcs
/prefs
/defaults
23 echo yes | darcs whatsnew
-s
27 # Check that prompting works as expected with defaults (no)...
28 echo no | darcs whatsnew
-s
31 # Check that --run-prehook works in defaults
32 echo ALL
--run-prehook >> _darcs
/prefs
/defaults
37 # Check that --run-prehook works when specified both in defaults and on
39 darcs whatsnew
--run-prehook -s
43 # Check that --prehook works when --run-prehook is in defaults
44 echo ALL
--run-prehook > _darcs
/prefs
/defaults
45 darcs whatsnew
--prehook 'touch prehook-ran' -s