repository with subrespository: I am stuck with a nested nested path problem
Anton Shestakov
engored at gmail.com
Thu Dec 30 15:46:31 UTC 2021
> abort: path 'Neu-Einstufung/DocX-Neu' is inside nested repo 'Neu-Einstufung'
This suggests that hg tries to handle a file from a subrepo in the
context of the main repo. This could happen when that file was a part
of the main repo and then it was moved to a subrepo, and hg is trying
to e.g. rebase an old commit from when the file was a part of the main
repo onto a commit when that file no longer lives there. You need to
figure out where that file lives in 58 and in the evolve destination
(try --dry-run to see the destination). If the file lives at a
different repo now, it could be possible to recreate the subrepo setup
and rebase 58 on top of that first, and then rebase the whole stack to
where you want it to be, but if what sounds complicated, the easiest
way to deal with this is to recreate whatever changes you have in 58
again, by hand.
You should know that subrepos were always a feature of last resort:
https://www.mercurial-scm.org/wiki/Subrepository
Also don't ever use rollback.
More information about the Mercurial
mailing list