Setting up a central repository

Benoit Boissinot bboissin at gmail.com
Tue Aug 21 08:54:44 CDT 2007


On 8/21/07, Imbeault, Jean-Christian <jeanchristian.imbeault at lehman.com> wrote:
>
> I'm having some difficulty setting up a shared repository and hoping
> someone can help answer the following questions:
>
> I'm trying to set the shared repo up using a group account on a shared
> server.
>
> 1- When I ssh to the hg repo how does the remote hg know where the repo
> is located?

it is passed in the argument by the local hg (with the -R switch)

>
> 2- When I try to get a copy of the repository I get an error about not
> finding the repo:
>
>         [agpmdev at tklxecdev001 ~/hgrepository]$ ssh -l aseqdsu
> tklxecdev001 hg pull OES
>         aseqdsu at tklxecdev001's password:
>         abort: There is no Mercurial repository here (.hg not found)!
>
> The repo exists though:
>
>         [aseqdsu at tklxecdev001 ~/hgproj/repository]$ ls -a
>         .  ..  OES
>
You are supposed to use hg pull ssh://login@host/hgproj/repository/OES

(hg will call ssh with the right arguments)


> 3- Do I need to create a .ssh/authorized_keys file? I have created one
> which uses hg-login but strangely the one user I added to the file
> always gets 'Invalid command' whereas a user not in the authorized_keys
> file can run hg commands
>
If you want your users not to know the password for the account,
you'll need to setup a correct .ssh/authorized_keys setup.

What command did you try that yield that error ? and what command did
you put in authorized_keys ?

regards,

Benoit


More information about the Mercurial mailing list