Mercurial > hg
view tests/test-generaldelta.t @ 19911:1c58e368fbfd
shelve: some docstring cleanups
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 16 Oct 2013 10:36:58 -0400 |
parents | 1b2f9d36953e |
children | 2c886dedd902 |
line wrap: on
line source
Check whether size of generaldelta revlog is not bigger than its regular equivalent. Test would fail if generaldelta was naive implementation of parentdelta: third manifest revision would be fully inserted due to big distance from its paren revision (zero). $ hg init repo $ cd repo $ echo foo > foo $ echo bar > bar $ hg commit -q -Am boo $ hg clone --pull . ../gdrepo -q --config format.generaldelta=yes $ for r in 1 2 3; do > echo $r > foo > hg commit -q -m $r > hg up -q -r 0 > hg pull . -q -r $r -R ../gdrepo > done $ cd .. $ regsize=`du -s -b repo/.hg/store/00manifest.i | cut -f 1` $ gdsize=`du -s -b gdrepo/.hg/store/00manifest.i | cut -f 1` $ if [ $regsize -lt $gdsize ]; then > echo 'generaldelta increased size of a revlog!' > fi