sapling/tests/test-treemanifest-amend.t
Durham Goode ef44953866 historypack: make version 1 the default
Summary:
We already have the config set to make version one used in all our main
repositories, but it wasn't being used in all of our tests. Let's change
mutablehistorypack to default to creating version 1 historypacks now.

Reviewed By: quark-zju

Differential Revision: D9367017

fbshipit-source-id: 7d4055455cd8f8e6b2378c5f3a9993b2a40221a8
2018-08-17 09:39:36 -07:00

35 lines
996 B
Perl

Crash in histpack code path where the amend destination already exists
$ enable undo inhibit treemanifest fastmanifest remotefilelog
$ setconfig experimental.evolution=createmarkers treemanifest.treeonly=1 remotefilelog.reponame=foo remotefilelog.cachepath=$TESTTMP/cache
$ newrepo
$ drawdag << 'EOS'
> B
> |
> A
> EOS
$ enable undo
$ hg up -q $B
$ echo foo > msg
$ hg commit --amend -l msg
$ hg undo -q
$ hg commit --amend -l msg
Make sure no invalid manifests were written:
$ cd .hg/store/packs/manifests
$ for i in *.histidx; do hg debughistorypack $i; done
Node P1 Node P2 Node Link Node Copy From
41b34f08c135 000000000000 000000000000 426bada5c675
Node P1 Node P2 Node Link Node Copy From
eb7988638387 41b34f08c135 000000000000 220f69710758
Node P1 Node P2 Node Link Node Copy From
eb7988638387 41b34f08c135 000000000000 112478962961