4 not
() { "$@" && exit 1 ||
:; }
6 # test for working dir woes
19 darcs record
-am "x to y"
31 # try to move a file that we don't have the right to do
32 darcs get temp1 temp2
--to-patch aa
41 # [issue319] try to overwrite file(s) in our working dir
42 darcs get temp1 temp2
--to-patch aa
48 grep temp2 b-darcs-backup0
49 grep temp2 d-darcs-backup0
50 # now make sure we didn't overdo it
53 test -e b-darcs-backup0
54 test ! -e b-darcs-backup1
58 # [issue298] backup working dir files with conflicts
59 darcs get temp1 temp2
--tag 1
64 grep "2-b2" b-darcs-backup0
65 not
grep "v v v" b-darcs-backup0
69 # [issue440] a) try to overwrite a file in our working dir
70 darcs get temp1 temp2
--to-patch a
73 echo old-bak
> a
/y-darcs-backup0
76 grep old-bak a
/y-darcs-backup0
77 grep temp2 a
/y-darcs-backup1
81 # [issue440] b) try to overwrite a directory in our working dir
82 darcs get temp1 temp2
--to-patch a
85 echo old-bak
> a
/y-darcs-backup0
88 grep old-bak a
/y-darcs-backup0
89 test -d a
/y-darcs-backup1