Follow upstream changes -- rest
[git-darcs-import.git] / tests / pull_many_files.sh
blob04b29c24bd2bb110003829e531e4a232d104e719
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp1 temp2
6 if grep old-fashioned .darcs/defaults; then
7 format=old-fashioned-inventory
8 elif grep darcs-2 .darcs/defaults; then
9 format=darcs-2
10 else format=hashed; fi
12 mkdir temp2
13 cd temp2
14 gunzip -c ../repos/many-files--${format}.tgz | tar xf -
15 cd ..
17 mkdir temp1
18 cd temp1
19 darcs init
20 darcs pull -a ../temp2/many-files--${format} > log
21 grep -i 'finished pulling' log
22 cd ..
23 rm -rf temp1
25 # put things back how we found them.
27 rm -rf temp1 temp2