comparison tests/test-ssh.t @ 39806:0ad5f064d829 stable

test-ssh: show that stdio redirection doesn't work with chg Running tests with --chg doesn't mean all hg invocations are replaced by chg. This patch explicitly adds the test for "chg serve --stdio", which does weird stdio dance.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 25 Sep 2018 23:06:02 +0900
parents dfb888aae17a
children e5724be689b3
comparison
equal deleted inserted replaced
39805:823f34acfd46 39806:0ad5f064d829
314 parent: 0:1160648e36ce 314 parent: 0:1160648e36ce
315 user: test 315 user: test
316 date: Thu Jan 01 00:00:00 1970 +0000 316 date: Thu Jan 01 00:00:00 1970 +0000
317 summary: z 317 summary: z
318 318
319
320 #if chg
321
322 try again with remote chg, which should succeed as well
323
324 $ hg rollback -R ../remote
325 repository tip rolled back to revision 4 (undo serve)
326
327 $ hg push --config ui.remotecmd=chg
328 pushing to ssh://user@dummy/remote
329 searching for changes
330 remote has heads on branch 'default' that are not known locally: 6c0482d977a3
331 abort: not a Mercurial bundle
332 [255]
333
334 #endif
319 335
320 clone bookmarks 336 clone bookmarks
321 337
322 $ hg -R ../remote bookmark test 338 $ hg -R ../remote bookmark test
323 $ hg -R ../remote bookmarks 339 $ hg -R ../remote bookmarks
556 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 572 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
557 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 573 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
558 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 574 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
559 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 575 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
560 changegroup-in-remote hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:ssh:$LOCALIP 576 changegroup-in-remote hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:ssh:$LOCALIP
577 Got arguments 1:user@dummy 2:chg -R remote serve --stdio (chg !)
578 changegroup-in-remote hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:ssh:$LOCALIP (chg !)
561 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 579 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
562 Got arguments 1:user@dummy 2:hg init 'a repo' 580 Got arguments 1:user@dummy 2:hg init 'a repo'
563 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio 581 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
564 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio 582 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
565 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio 583 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio