4 not
() { "$@" && exit 1 ||
:; }
6 rm -rf temp1 temp2 temp3
11 # this test only applies to hashed formats
12 if cat _darcs
/inventory
; then exit 0; fi
16 darcs record
-am 'add f1'
22 darcs record
-am 'add f2'
25 darcs get
--lazy temp1 temp2
27 darcs get
--lazy temp2 temp3
31 # Run darcs changes so we pull in the inventories (but no the patches)
34 # Remove original repository, so we have no references to changes f1 and f2.
37 # Now we should be unable to read some of the history
38 darcs changes
-s > out
44 darcs record
-am 'add f3'
46 darcs tag
-m 'tag 123'
52 darcs record
-am 'add f4'
55 # Here's the point of this test: we should be able to optimize
56 # --reorder without being able to read all the patches in the
58 darcs optimize
--reorder
60 # Just a double-check: we shouldn't be able to check in this case.
65 rm -rf temp1 temp2 temp3 temp4