mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
ef44953866
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
35 lines
996 B
Perl
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
|