tests/bundles/test-revlog-diff-relative-to-nullrev.sh
author Arseniy Alekseyev <aalekseyev@janestreet.com>
Sun, 22 May 2022 23:26:06 +0200
branchstable
changeset 49209 2dd53a33aefa
child 49237 996a70c75c66
permissions -rwxr-xr-x
test-revlog: test a repository that contains a diff against nullrev We are witnessing a crash in the rust code, so we lets make sure this case is tested.

#!/bin/bash
#
# Make sure to patch mercurial to create the delta against nullrev
#          if deltainfo is None:
#-             deltainfo = self._fullsnapshotinfo(fh, revinfo, target_rev)
#+             deltainfo = self._builddeltainfo(revinfo, nullrev, fh)

cd "`dirname \"$0\"`"
export HGRCPATH=
export HGMODULEPOLICY=py

rm -rf nullrev-diff
../../hg init nullrev-diff  --config format.revlog-compression=zlib
cd nullrev-diff
echo hi > a
../../../hg commit -Am root-B
../../../hg debugdeltachain a
rm -rf .hg/cache/ .hg/wcache/
cd ..

tar cf test-revlog-diff-relative-to-nullrev.tar nullrev-diff

rm -rf nullrev-diff