Follow upstream changes -- rest
[git-darcs-import.git] / tests / unrecord.sh
blob66d7446bb1f436e16b739e154f4eeffa34929a11
1 #!/usr/bin/env bash
3 set -ev
5 # Check that checkpoints are removed when tags are unrecorded
7 rm -rf temp1
8 mkdir temp1
9 cd temp1
10 darcs init
11 echo foo > f
12 darcs rec -Ax -alm init
13 darcs tag -Ax --checkpoint t
14 echo y | darcs unrec -t t
15 # the complete inventory has only one patch to check
16 darcs check --complete > out
17 # The following test fails because the new progress code only
18 # prints out information on slow commands.
19 #grep '1 of 1' out >/dev/null
21 # the checkpoint (if left) has two patches to check
22 # but it should have been removed
23 darcs check --partial > out
24 # The following test fails because the new progress code only
25 # prints out information on slow commands.
26 #grep '1 of 1' out >/dev/null
27 cd ..
28 rm -rf temp1