"clone" and non-existent directories
Benoit Boissinot
bboissin at gmail.com
Fri Sep 26 07:41:58 CDT 2008
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
More information about the Mercurial
mailing list