Mercurial > hg
view tests/test-generaldelta.t @ 19839:a32ef044b99a
branchmap: stop looking for stripped branch
Since repoview in 2.5 we do not make special call to `branchmap` when stripping.
We just recompute the branchmap from a lower subset that still has valid
branchmap. So I'm dropping this dead code.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 30 Sep 2013 17:42:38 +0200 |
parents | 4d2bea6604d3 |
children | 1b2f9d36953e |
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 -gt $gdsize ]; then > echo 'generaldelta increased size of a revlog!' > fi