388 $ hg clone --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
388 $ hg clone --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
389 destination directory: a repo |
389 destination directory: a repo |
390 abort: destination 'a repo' is not empty |
390 abort: destination 'a repo' is not empty |
391 [10] |
391 [10] |
392 |
392 |
|
393 #if no-rhg |
393 Make sure hg is really paranoid in serve --stdio mode. It used to be |
394 Make sure hg is really paranoid in serve --stdio mode. It used to be |
394 possible to get a debugger REPL by specifying a repo named --debugger. |
395 possible to get a debugger REPL by specifying a repo named --debugger. |
395 $ hg -R --debugger serve --stdio |
396 $ hg -R --debugger serve --stdio |
396 abort: potentially unsafe serve --stdio invocation: ['-R', '--debugger', 'serve', '--stdio'] |
397 abort: potentially unsafe serve --stdio invocation: ['-R', '--debugger', 'serve', '--stdio'] |
397 [255] |
398 [255] |
400 [255] |
401 [255] |
401 Abbreviations of 'serve' also don't work, to avoid shenanigans. |
402 Abbreviations of 'serve' also don't work, to avoid shenanigans. |
402 $ hg -R narf serv --stdio |
403 $ hg -R narf serv --stdio |
403 abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio'] |
404 abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio'] |
404 [255] |
405 [255] |
|
406 #else |
|
407 rhg aborts early on -R without a repository at that path |
|
408 $ hg -R --debugger serve --stdio |
|
409 abort: potentially unsafe serve --stdio invocation: ['-R', '--debugger', 'serve', '--stdio'] (missing-correct-output !) |
|
410 abort: repository --debugger not found (known-bad-output !) |
|
411 [255] |
|
412 $ hg -R --config=ui.debugger=yes serve --stdio |
|
413 abort: potentially unsafe serve --stdio invocation: ['-R', '--config=ui.debugger=yes', 'serve', '--stdio'] (missing-correct-output !) |
|
414 abort: repository --config=ui.debugger=yes not found (known-bad-output !) |
|
415 [255] |
|
416 $ hg -R narf serv --stdio |
|
417 abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio'] (missing-correct-output !) |
|
418 abort: repository narf not found (known-bad-output !) |
|
419 [255] |
|
420 If the repo does exist, rhg finds an unsupported command and falls back to Python |
|
421 which still does the right thing |
|
422 $ hg init narf |
|
423 $ hg -R narf serv --stdio |
|
424 abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio'] |
|
425 [255] |
|
426 #endif |
405 |
427 |
406 Test hg-ssh using a helper script that will restore PYTHONPATH (which might |
428 Test hg-ssh using a helper script that will restore PYTHONPATH (which might |
407 have been cleared by a hg.exe wrapper) and invoke hg-ssh with the right |
429 have been cleared by a hg.exe wrapper) and invoke hg-ssh with the right |
408 parameters: |
430 parameters: |
409 |
431 |