sapling/tests/test-fb-hgext-treemanifest-autoconvert.t
Jun Wu 1cde63d99c codemod: drop hacks changing PYTHONPATH in tests
Summary:
Now they are unnecessary since `run-tests.py` will set up `PYTONPATH`
correctly.

Differential Revision: D6865042

fbshipit-source-id: ca95314f725968e14349a9d916434aa832c596f9
2018-04-13 21:51:00 -07:00

67 lines
1.5 KiB
Raku

$ . "$TESTDIR/library.sh"
$ hginit master
$ cd master
$ cat >> .hg/hgrc <<EOF
> [extensions]
> treemanifest=
> [treemanifest]
> server=True
> [remotefilelog]
> server=True
> EOF
$ echo x > x
$ hg commit -qAm 'add x'
$ cd ..
$ hgcloneshallow ssh://user@dummy/master client -q
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over * (glob)
$ cd client
$ cat >> .hg/hgrc <<EOF
> [extensions]
> fastmanifest=
> treemanifest=
>
> [remotefilelog]
> usefastdatapack=True
>
> [treemanifest]
> autocreatetrees=True
> demanddownload=False
>
> [fastmanifest]
> usetree=True
> usecache=False
> EOF
Test auto creating trees for merge commit
$ cd ../master
$ hg up -q null
$ echo z >> z
$ hg commit -qAm 'add z'
$ hg up -q 0
$ hg merge -q -r 1
$ hg commit -qAm 'merge'
$ cd ../client
$ hg pull
pulling from ssh://user@dummy/master
searching for changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 0 changes to 0 files
new changesets d32fd17cb041:92f4ca0e667c
(run 'hg update' to get a working copy)
$ hg manifest -r tip
x
z
$ hg debughistorypack $TESTTMP/hgcache/master/packs/manifests/*.histidx
Node P1 Node P2 Node Link Node Copy From
ddb35f099a64 000000000000 000000000000 d32fd17cb041
13532a598745 bc0c2c938b92 000000000000 92f4ca0e667c
bc0c2c938b92 000000000000 000000000000 085784c01c08