[issue3250] running ssh with remotecmd 2.0.1 works, but 2.1 has cruft

rsutherland bugs at mercurial.selenic.com
Sun Feb 5 23:44:08 CST 2012


New submission from rsutherland <rsutherland at epccs.com>:

With 2.1 on Ubuntu  natty, and same on F16.
This may look odd, its from my notes.
I thought bluehost had limited the source command in non-interactive. 

hg clone --debug --remotecmd '/ramdisk/bin/bash -l -c source .bashrc; hg'
ssh://blue/~/hg/open/test
running ssh blue ''\''/ramdisk/bin/bash -l -c source .bashrc; hg'\'' -R
'\''~/hg/open/test'\'' serve --stdio'
sending hello command
sending between command
remote: bash: /ramdisk/bin/bash -l -c source .bashrc; hg: No such file or
directory
abort: no suitable response from remote hg!

If I nix the cruft, which is not clear to me, the ssh line does connect.

ssh blue /ramdisk/bin/bash -l -c source .bashrc; hg -R ~/hg/open/test serve
--stdio
.bashrc: line 0: source: filename argument required
source: usage: source filename [arguments]
ImTypingToServerNow
0
AndAgain
0

went bakc to 2.0.1 which was working on a Windows computer.
I've also put "remotecmd = source ~/.bashrc;hg" back in my ~/.hgrc file.

hg --debug clone ssh://blue/~/hg/open/test
running ssh blue "source ~/.bashrc;hg -R ~/hg/open/test serve --stdio"
sending hello command
sending between command
remote: 145
... cruft ...
add changeset 0eac738a908d
changesets: 16 chunks
add changeset 0d6c368a6be1
adding manifests
manifests: 1/16 chunks (6.25%)
manifests: 2/16 chunks (12.50%)
... cruft ...
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
sending listkeys command

Worked fine on my Ubuntu machine, just like on Windows.

----------
messages: 18971
nosy: rsutherland
priority: bug
status: unread
title: running ssh with remotecmd 2.0.1 works, but 2.1 has cruft

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3250>
____________________________________________________


More information about the Mercurial-devel mailing list