How do I push over SSH to a machine that does not have Mercurial installed? - Kiln Knowledge Exchange most recent 30 from http://kiln.stackexchange.com2013-05-20T08:36:19Zhttp://kiln.stackexchange.com/feeds/question/2189http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://kiln.stackexchange.com/questions/2189/how-do-i-push-over-ssh-to-a-machine-that-does-not-have-mercurial-installedHow do I push over SSH to a machine that does not have Mercurial installed?interfect2010-09-21T22:46:47Z2010-09-22T15:43:10Z
<p>I have Mercurial running on my machine, and I want to keep a master repository on a machine that I access over SSH. The machine where I want to keep the master repository does not have Mercurial installed, and I cannot install it. I tried to create the repository on the remote machine using <code>hg push</code>, and I got a message about the remote machine not having Mercurial installed:</p>
<pre><code>$ hg push ssh://user@exaple.com/repo
user@exaple.com's password:
remote: bash: hg: command not found
abort: no suitable response from remote hg!
</code></pre>
<p>I there any way I can make Mercurial treat this SSH url like a filesystem location and clone to it instead? Once it's set up, how can I push to it without relying on a remote copy of Mercurial?</p>
http://kiln.stackexchange.com/questions/2189/how-do-i-push-over-ssh-to-a-machine-that-does-not-have-mercurial-installed/2190#2190Answer by Benjamin Pollack for How do I push over SSH to a machine that does not have Mercurial installed?Benjamin Pollack2010-09-22T03:10:36Z2010-09-22T03:10:36Z<p>There is no way that Mercurial can push or clone to a machine without Mercurial installed. The good news is that, as long as you're just using it for backup purposes, and no one else will ever be pushing there, you can safely <code>rsync</code> up to the remote host. Just remember that doing so will have no repository locking, so trying to <code>rsync</code> from two machines at once will leave you very unhappy.</p>
<p>(<strong>Useless trivia</strong>: As it happens, very, very early versions of Mercurial could in fact do this, if I recall correctly, but what they did was exactly equivalent to running <code>rsync</code>, which is why the feature was removed. I <em>think</em> that Bazaar still has this functionality, if you badly need a DVCS that can push to machines without the DVCS installed, but I don't know of any other system that can. Really, if you're just doing it for backup, <code>rsync</code> works just fine.)</p>
http://kiln.stackexchange.com/questions/2189/how-do-i-push-over-ssh-to-a-machine-that-does-not-have-mercurial-installed/2193#2193Answer by Ted for How do I push over SSH to a machine that does not have Mercurial installed?Ted2010-09-22T15:43:10Z2010-09-22T15:43:10Z<p>You can use sshfs to literally make ssh look like a filesystem.</p>