Some basic help for a noob
Patrick Mézard
pmezard at gmail.com
Fri Jan 20 13:21:47 UTC 2012
Le 20/01/12 13:47, Paul Boddie a écrit :
> On 20/01/12 13:38, Tom Anderson wrote:
>> On 20/01/12 11:49, Paul Boddie wrote:
>> A bit of experimentation suggests that the path is interpreted relative
>> to the user's home directory. Or rather, that the string after and not
>> including the slash following the hostname is interpreted as a path in
>> the context of the user's home directory. So, if the user's home is at
>> /home/user, then ssh://user@host/repositories/repository ->
>> /home/user/repositories/repository (because the path is
>> repositories/repository), whereas
>> ssh://user@host//repositories/repository -> /repositories/repository
>> (because the path is /repositories/repository). I should probably have
>> known that already.
>
> Yes, you have an absolute or relative path after the / (slash) following the host, meaning that an absolute path has a doubling of the slash. This is a bit like the syntax of paths given to things like scp, but perhaps in contrast to traditional URLs. It should be written up somewhere in the documentation, however.
For once, it is, see "hg help urls".
"""
Some notes about using SSH with Mercurial:
- SSH requires an accessible shell account on the destination machine and
a copy of hg in the remote path or specified with as remotecmd.
- path is relative to the remote user's home directory by default. Use an
extra slash at the start of a path to specify an absolute path:
ssh://example.com//tmp/repository
[...]
"""
--
Patrick Mézard
More information about the Mercurial
mailing list