tests/test-ssh.t
branchstable
changeset 32050 77eaf9539499
parent 30914 f3807a135e43
child 32054 616e788321cc
equal deleted inserted replaced
31760:68f263f52d2e 32050:77eaf9539499
   355   $ hg clone --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
   355   $ hg clone --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
   356   destination directory: a repo
   356   destination directory: a repo
   357   abort: destination 'a repo' is not empty
   357   abort: destination 'a repo' is not empty
   358   [255]
   358   [255]
   359 
   359 
       
   360 Make sure hg is really paranoid in serve --stdio mode. It used to be
       
   361 possible to get a debugger REPL by specifying a repo named --debugger.
       
   362   $ hg -R --debugger serve --stdio
       
   363   abort: potentially unsafe serve --stdio invocation: ['-R', '--debugger', 'serve', '--stdio']
       
   364   [255]
       
   365   $ hg -R --config=ui.debugger=yes serve --stdio
       
   366   abort: potentially unsafe serve --stdio invocation: ['-R', '--config=ui.debugger=yes', 'serve', '--stdio']
       
   367   [255]
       
   368 Abbreviations of 'serve' also don't work, to avoid shenanigans.
       
   369   $ hg -R narf serv --stdio
       
   370   abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio']
       
   371   [255]
       
   372 
   360 Test hg-ssh using a helper script that will restore PYTHONPATH (which might
   373 Test hg-ssh using a helper script that will restore PYTHONPATH (which might
   361 have been cleared by a hg.exe wrapper) and invoke hg-ssh with the right
   374 have been cleared by a hg.exe wrapper) and invoke hg-ssh with the right
   362 parameters:
   375 parameters:
   363 
   376 
   364   $ cat > ssh.sh << EOF
   377   $ cat > ssh.sh << EOF