1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
#!/bin/sh
set -ve
. lib
rm -rf temp1
mkdir temp1
cd temp1
darcs init
# Here we check whether recording just one of two --look-for-add
# addfiles causes any trouble (which it doesn't)
date > f1
date > f2
echo yyd | darcs record -l -m ff
cat _darcs/patches/pending
not darcs wh
rm f2
# Try recording a file add without --look-for-adds, with a setpref
# patch present that we don't record.
darcs setpref boringfile .boring
echo bar > bar
darcs add bar
echo yyd | darcs record -mbar
cat _darcs/patches/pending
darcs whatsnew -s
test -z "`darcs whatsnew -s`"
# Now try the same thing using --look-for-adds
echo foo > foo
darcs wh -l
# remove any files added by profiling or hpc...
rm -f darcs.tix darcs.prof
echo yyd | darcs record --look-for-adds -mfoo
cat _darcs/patches/pending
darcs whatsnew -s
test -z "`darcs whatsnew -s`"
cd ..
rm -rf temp1
|