sapling/tests/test-fb-hgext-remotefilelog-treemanifest-lfs.t
Jun Wu b178492317 changelog: disable inline revlog
Summary:
The inline revlog format merges `.i` and `.d` into one `.i` file. It was intended to reduce the
number of files for filelogs. For the changelog one extra file does not hurt.

This makes it easier to write native code parsing the changelog revlog index.

Reviewed By: xavierd

Differential Revision: D17125922

fbshipit-source-id: f48ffe0d2df71abec007a80e05b684dcbac71883
2019-08-30 14:58:02 -07:00

52 lines
1.7 KiB
Perl

$ . "$TESTDIR/library.sh"
$ setconfig treemanifest.flatcompat=False
$ enable lfs treemanifest pushrebase
$ setconfig treemanifest.treeonly=True
$ hginit master
$ cd master
$ setconfig remotefilelog.server=True treemanifest.server=True remotefilelog.shallowtrees=True
$ mkdir dir
$ echo x > dir/x
$ hg commit -qAm x1
$ hg book master
$ cd ..
$ hgcloneshallow ssh://user@dummy/master shallow --config extensions.fastmanifest= --config fastmanifest.usetrees=True --config extensions.treemanifest= --config treemanifest.treeonly=True
streaming all changes
2 files to transfer, * of data (glob)
transferred 124 bytes in * seconds (*) (glob)
searching for changes
no changes found
updating to branch default
fetching tree '' 287ee6e53d4fbc5fab2157eb0383fdff1c3277c8
2 trees fetched over * (glob)
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over * (glob)
$ cd shallow
$ enable fastmanifest remotenames
$ setconfig fastmanifest.usetrees=True
$ setconfig treemanifest.sendtrees=True treemanifest.treeonly=True
$ echo >> dir/x
$ hg commit -m "Modify dir/x"
$ hg push --to master
pushing rev 6b73ab2c9773 to destination ssh://user@dummy/master bookmark master
searching for changes
remote: pushing 1 changeset:
remote: 6b73ab2c9773 Modify dir/x
updating bookmark master
$ hg --cwd ../master log -G -l 1 --stat
o changeset: 1:6b73ab2c9773
| bookmark: master
~ tag: tip
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: Modify dir/x
dir/x | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)