sapling/eden/scm/tests/test-wireproto.t
Durham Goode e9e0539cc1 filepeer: disable use of filepeer by default
Summary:
We want to remove filepeer as part of removing server logic in the
client. To start with, let's disable it by default and only enable it in tests
that need it. The next step will be to update those tests.

Reviewed By: quark-zju

Differential Revision: D30977765

fbshipit-source-id: c56016f017e894a15bf43fb7a8d3a0a417663ad9
2021-09-22 18:03:29 -07:00

33 lines
980 B
Perl

#chg-compatible
$ setconfig experimental.allowfilepeer=True
$ configure dummyssh
Test wire protocol argument passing
Setup repo:
$ hg init repo
Local:
$ hg debugwireargs repo eins zwei --three drei --four vier
eins zwei drei vier None
$ hg debugwireargs repo eins zwei --four vier
eins zwei None vier None
$ hg debugwireargs repo eins zwei
eins zwei None None None
$ hg debugwireargs repo eins zwei --five fuenf
eins zwei None None fuenf
SSH (try to exercise the ssh functionality with a dummy script):
$ hg debugwireargs --ssh "$(dummysshcmd)" ssh://user@dummy/repo uno due tre quattro
uno due tre quattro None
$ hg debugwireargs --ssh "$(dummysshcmd)" ssh://user@dummy/repo eins zwei --four vier
eins zwei None vier None
$ hg debugwireargs --ssh "$(dummysshcmd)" ssh://user@dummy/repo eins zwei
eins zwei None None None
$ hg debugwireargs --ssh "$(dummysshcmd)" ssh://user@dummy/repo eins zwei --five fuenf
eins zwei None None None