Mercurial > hg
view tests/test-bundle-type @ 10955:470a6ace7574
Added support for 'pretxncommit', so that one can call the ACL hook at
pre-commit time too. This is useful because now it's possible to avoid
violating ACL permissions much sooner, at commit time, instead of
waiting for a PUSH to check if there were any invalid commits.
author | Elifarley Callado Coelho Cruz <elifarley@gmail.com> |
---|---|
date | Tue, 06 Apr 2010 22:15:43 -0300 |
parents | 41b7802b089a |
children |
line wrap: on
line source
#!/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 cut -b 1-6 ../b$t | head -n 1 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 ..