Problem keeping history for legacy file

Dr. Arne Babenhauserheide arne_bab at web.de
Mon Jun 17 21:35:18 UTC 2024


Hi Ernie,

Ernie Rael <errael at raelity.com> writes:
> I'd like to turn it into the following, with legacy is in a different directory,
> and where the history of hglog looks right. This is wanted because the new
> version is buggy, and it's useful to run either.
>
>        - - - history - - - -o:legacy
>       /                    /
>  o...o:fork...o...o...o...o:new

> Instead of "hg rebase" I tried "hg graft" with similar results
> Same thing with "hg transplant" which surprised me.
>
> Is there a way to do this and get a clean history?

How would that clean history look? If you just want them in different
folders, you could rename legacy and then simply merge tip.

hg up legacy
hg cp . new/directory
hg ci -m "move to legacy"
hg merge -r -2
hg ci -m "merge new and old"

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


More information about the Mercurial mailing list