Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue1110_get_old-fashioned.sh
blobdf3869b1850216e7884e9d3343620bb6f7d42d92
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp0 temp1
5 # sanity check
6 mkdir temp0
7 cd temp0
8 darcs init --old-fashioned
9 cd ..
10 darcs get --old-fashioned temp0 temp1
11 test -e temp1/_darcs/inventory
12 rm -rf temp0 temp1
14 # get from hashed
15 mkdir temp0
16 cd temp0
17 darcs init --hashed
18 cd ..
19 darcs get --old-fashioned temp0 temp1
20 test -e temp1/_darcs/inventory
21 rm -rf temp0 temp1
23 # get from darcs-2
24 mkdir temp0
25 cd temp0
26 darcs init --darcs-2
27 cd ..
28 darcs get --old-fashioned temp0 temp1 > log
29 grep 'Warning' log
30 rm -rf temp0 temp1