3 # A test for unrecording checkpoint tags, inspired by issue517
9 rm -rf temp temp1 temp2
12 # This the last commands would blow up if the "--darcs-2" format wasn't used.
13 darcs init
--darcs-2 --repodir temp
15 darcs rec
-lam xx
--repodir temp
16 darcs tag
-m yy
--repodir temp
18 darcs rec
-lam zz
--repodir temp
19 darcs optimize
--checkpoint --repodir temp
20 darcs get
--partial temp temp1
21 echo 'y' | darcs unrec
-p TAG
--repodir temp1
23 # Now, the real tests. Do they return sensible results?
24 darcs get
--partial temp1 temp2
;
25 echo 'n' | darcs unrec
--repodir temp1
-p 'zz'
27 rm -rf temp temp1 temp2
;
28 darcs init
--darcs-2 --repodir temp
30 darcs rec
-lam xx
--repodir temp
31 darcs tag
-m yy
--repodir temp
33 darcs rec
-lam zz
--repodir temp
34 darcs optimize
--checkpoint --repodir temp
35 darcs get
--partial temp temp1
36 echo 'y' | darcs unrec
-p TAG
--repodir temp1
38 # Now, the real tests. Do they return sensible results?
39 darcs get
--partial temp1 temp2
;
40 echo 'n' | darcs unrec
--repodir temp1
-p 'zz'
42 rm -rf temp temp1 temp2
;