ssh push to repos outside an homedirectory?
Bryan O'Sullivan
bos at serpentine.com
Wed Jun 28 06:01:19 UTC 2006
On Tue, 2006-06-27 at 22:05 -0700, Brendan Cully wrote:
> > Ok, good to know that works. I have to ask, though, why is this
> > different than other ssh-based things like scp and rsync with use a
> > colon like this:
> >
> > scp foo hostname:/absolute_path
> >
> > rsync -e ssh foo hostname:~/homedir_path
>
> Those other formats aren't URL formats.
Perhaps a more apt way to explain this is as follows:
The scp command only speaks two protocols (local and ssh), so it doesn't
need a way to be told what protocol to use. Rsync is a little more
complex, but still supports only three protocols (local, native, and
tunneled).
Mercurial supports five protocols natively - local transport, bundle
files, http, https, and ssh. It uses the URL scheme (the bit before the
first colon in the URL) to understand what protocol it should use.
Also, its protocol support is extensible, so it would be easy enough for
someone to drop in support for a new protocol; in fact, people have
requested support for rsync and (s)ftp.
Given this flexibility, it seems less attractive (at least to me) to
treat "anything we don't understand followed by a colon" as
ssh-with-hostname.
<b
More information about the Mercurial
mailing list