tests/test-bundle-type
author Adrian Buehlmann <adrian at cadifra.com>
Wed, 14 May 2008 01:08:51 +0200
changeset 6614 944a292d522a
parent 6570 626cb86a6523
child 6640 d6b53b48943f
permissions -rwxr-xr-x
doc/hgrc.5.txt: add anchors for sections Enables links into hgrc.5.html of the form: hgrc.5.html#section

#!/bin/sh

echo % bundle w/o type option
hg init t1
hg init t2
cd t1
echo blablablablabla > file.txt
hg ci -Ama
hg log | grep summary
hg bundle ../b1 ../t2

cd ../t2
hg pull ../b1
hg up
hg log | grep summary
cd ..

for t in "None" "bzip2" "gzip"; do
  echo % test bundle type $t
  hg init t$t
  cd t1
  hg bundle -t $t ../b$t ../t$t
  head -c 6 ../b$t
  cd ../t$t
  hg pull ../b$t
  hg up
  hg log | grep summary
  cd ..
done

echo % test garbage file
echo garbage > bgarbage
hg init tgarbage
cd tgarbage
hg pull ../bgarbage
cd ..

echo % test invalid bundle type
cd t1
hg bundle -a -t garbage ../bgarbage
cd ..