init: mercurial creates directories higher up than reporoot?
Mads Kiilerich
mads at kiilerich.com
Mon Aug 22 05:04:18 CDT 2011
On 08/22/2011 11:42 AM, Adrian Buehlmann wrote:
> Is this wanted (aka correct) behavior?
>
> $ hg version -q
> Mercurial Distributed SCM (version 1.9.1+30-c019df62de45)
>
> In an empty dir:
...
> Let's do:
>
> $ hg init foo/bar/bla
FWIW it was intentional:
changeset: 11640:c3e8ab80ee90
branch: stable
user: Mads Kiilerich <mads at kiilerich.com>
date: Wed Jul 21 19:29:57 2010 +0200
files: mercurial/localrepo.py tests/test-init tests/test-init.out
description:
init: create target directory recursively
Subrepos with relative paths must often be cloned to locations deep in
the directory structure. This allows clone over ssh (init+push) work.
That do however build on the assumption that subrepo push/clone should
work seamlessly. That might be an incorrect assumption.
/Mads
More information about the Mercurial-devel
mailing list