5 test $DARCS || DARCS
=$PWD/..
/darcs
6 ACTUAL_DARCS
=`which $DARCS`
7 DARCSPATH
=`dirname $ACTUAL_DARCS`
8 PATH
="$DARCSPATH:$PATH"
11 # create base repository
19 darcs record
-am first
20 darcs tag
--checkpoint 'Tag 1'
24 darcs record
-am second
25 darcs tag
--checkpoint 'Tag 2'
29 darcs record
-am third
30 darcs tag
--checkpoint 'Tag 3'
32 # create a partial copy of the base repository and modify it
35 darcs get
--partial temp1 temp2
38 # instead of the following three commands one could also use darcs optimize
40 darcs record
-am mistake
41 darcs unrecord
-ap mistake
43 # now check the repository
45 # => darcs: failed to read patch: ...