"clone" and non-existent directories
Pieter
pieter.cogghe at gmail.com
Fri Sep 26 13:06:26 UTC 2008
Hi all, hi Benoit,
Unfortunately that doesn't work, as hgadmin-tools has the hg user
configured so it can only rung the hg-command, nothing else.
kind regards,
Pieter
2008/9/26 Benoit Boissinot <bboissin at gmail.com>:
> On Fri, Sep 26, 2008 at 2:29 PM, Pieter <pieter.cogghe at gmail.com> wrote:
>> Hi all,
>>
>> We've set up a server with shared ssh, using hgadmin-tools. It works
>> wonderfully well. We can create repo's on the server with a simple:
>>
>> hg clone . ssh://hg@lucille/my-project
>>
>> However when we try to create a repo with subdirs, like:
>>
>> hg clone . ssh://hg@lucille/my-project/branches/development
>>
>> We get an error, because the directories ~/my-project/branches/ don't
>> exist (as a mather of fact you get the same error if you try to do
>> such a thing locally). It would be cool if hg could create the
>> non-existent directories. Now we have to login with ssh, as user
>> hgadmin, create the directories with sudo and then change the
>> ownership to the hg-user.
>>
>> Is there an easier way to do this?
>
> ssh hg at lucille "mkdir -p my-project/branches/development"
>
> would that work ?
>
> Benoit
>
--
Pieter Cogghe
Zwijnaardsesteenweg 375
9000 Gent
0487 10 14 21
More information about the Mercurial
mailing list