reorganize

Arne Babenhauserheide arne_bab at web.de
Sun Mar 12 19:57:45 UTC 2017


wolfgang at maas-noten.de writes:

> I somehow managed to create a project  where one of the subfolders has its own .hg subrepo.
> Is there a way to reorganize so that it becomes part of the main repo

Copy it out of the main project, reorganize it so all its files are in
the correct subfolder (see convert filemap¹), then delete the subrepo in
the main repo and pull --force + merge the converted repo into the main
repo.

¹: https://www.mercurial-scm.org/wiki/ConvertExtension#A--filemap

Do take a backup before you start
(i.e. via cp -rp main-project main-project-backup-2017-03).

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20170312/2905281d/attachment.asc>


More information about the Mercurial mailing list