sapling/eden/scm/tests/test-fb-hgext-remotefilelog-treemanifest-lfs.t
Jun Wu ae8f6ff8e8 tests: opt-in DUMMYSSH_STABLE_ORDER for more tests
Summary: This should help reduce test flakiness.

Reviewed By: xavierd

Differential Revision: D19872952

fbshipit-source-id: d66f6c404534b3f47903b478e3cdfdda5ed46284
2020-02-27 17:54:08 -08:00

52 lines
1.4 KiB
Perl

#require py2
#chg-compatible
$ . "$TESTDIR/library.sh"
$ setconfig treemanifest.flatcompat=False
$ enable lfs treemanifest pushrebase
$ 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
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 remotenames
$ setconfig treemanifest.sendtrees=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
updating bookmark master
remote: pushing 1 changeset:
remote: 6b73ab2c9773 Modify dir/x
$ hg --cwd ../master log -G -l 1 --stat
o changeset: 1:6b73ab2c9773
| bookmark: master
~ 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(-)