mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
00ecfbb16c
Summary: A lot of tests are passing with the new test runner. This is done by `./edit-feature-header.py debugruntest` and paste the `Passed:` section from `hg debugruntest -v test-*.t` output. Note: some tests fail with this but pass with debugruntest. They will be investigated as follow-up. Differential Revision: D34931992 fbshipit-source-id: 99abc3d9800bb1dd3487dbfa15d715c0bd3ba878
46 lines
1.0 KiB
Perl
46 lines
1.0 KiB
Perl
#chg-compatible
|
|
#debugruntest-compatible
|
|
|
|
$ . "$TESTDIR/library.sh"
|
|
|
|
Do some initial setup
|
|
$ CACHEDIR="$TESTTMP/hgcache"
|
|
$ configure dummyssh
|
|
$ enable treemanifest remotefilelog pushrebase remotenames
|
|
$ setconfig remotefilelog.reponame=testrepo remotefilelog.cachepath="$CACHEDIR"
|
|
$ setconfig treemanifest.sendtrees=true
|
|
$ setconfig ui.username="nobody <no.reply@fb.com>"
|
|
|
|
Setup a server repo
|
|
$ hginit server
|
|
$ cd server
|
|
$ cat >> .hg/hgrc <<CONFIG
|
|
> [treemanifest]
|
|
> server = True
|
|
> [remotefilelog]
|
|
> server = True
|
|
> shallowtrees = True
|
|
> CONFIG
|
|
$ hg debugdrawdag <<EOF
|
|
> C
|
|
> |
|
|
> B
|
|
> |
|
|
> A
|
|
> EOF
|
|
|
|
$ hg bookmark master_bookmark -r tip
|
|
$ hg log -r tip -q
|
|
26805aba1e60
|
|
|
|
Send unbundle
|
|
$ cat $TESTDIR/bundles/sendunbundle.test.hg | hg debugsendunbundle ssh://user@dummy/server
|
|
remote: pushing 1 changeset:
|
|
remote: a0c9c5791058 1
|
|
remote: 1 new changeset from the server will be downloaded
|
|
|
|
Server tip is now different
|
|
$ cd "$TESTTMP/server"
|
|
$ hg log -r tip -q
|
|
c2e526aacb51
|