update into a different folder?
Jack Beauregard
jbeauregard.ch at gmail.com
Mon Aug 1 13:47:08 UTC 2011
On 1 Aug., 15:30, Mads Kiilerich <m... at kiilerich.com> wrote:
> On 08/01/2011 12:06 PM, Jack Beauregard wrote:
>
>
> I'm not sure exactly what you are asking, but:
>
> Mercurial keeps things simple and has a very simple 1-to-1 relation
> between the location of the .hg directory (with the repository metadata)
> and the working directory (where your files are checked out with 'hg
> update'): They are always the same.
>
> Perhaps you wanted to do:
> cd /a/a
> hg clone ... myProject
>
> Mercurial working directories will always look the same. There is no way
> to check out only one subdirectory or remap the directory layout, so you
> have to create your repository layout correctly - and then you will have
> the benefit of everything looking the same way everywhere. You can move
> directories with 'hg mv' or you can convert your repository and change
> locations (see 'hg help convert').
>
> Subrepositories could perhaps also do what you are asking for, but it is
> an advanced feature that most likely will cause trouble if you are new
> to Mercurial.
>
> /Mads
> _______________________________________________
> Mercurial mailing list
> Mercur... at selenic.comhttp://selenic.com/mailman/listinfo/mercurial- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
Thank you Mads,
What I wanna do... I want to bring two repositories together. They
have a different folder layout. The 1st step is clone an existing
repository(a) and give them the shape of the other on(b).
b has the correct layout /LVL1/<sources>. a has no subdir: / After
cloning and hg update I get /.hg and /<sources>. Now I want to
have /.hg and /LVL1/<sources>. hg mv is really a hint but if I do that
I get abort: destination is not a directory, but of course it is one.
best wishes
Jack
More information about the Mercurial
mailing list