File: issue709_pending_look-for-adds.sh

package info (click to toggle)
darcs 2.4.4-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,292 kB
  • ctags: 259
  • sloc: haskell: 26,818; sh: 7,051; ansic: 1,572; perl: 124; makefile: 24
file content (56 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (3)
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