linear history, various commits on the wrong named branch, graft refuses
Becker, Mischa J
mischa.becker at kroger.com
Fri Apr 29 16:48:19 UTC 2022
Graft has a --force option. Have you tried that?
Mischa Becker
> -----Original Message-----
> From: Mercurial <mercurial-bounces at mercurial-scm.org> On Behalf Of Uwe
> Brauer
> Sent: Friday, April 29, 2022 1:38 AM
> To: Mercurial List <mercurial at mercurial-scm.org>
> Subject: linear history, various commits on the wrong named branch, graft
> refuses
>
> ** [EXTERNAL EMAIL]: Do not click links or open attachments unless you
> recognize the sender and know the content is safe. **
>
> Hi
>
> Without realising it, I have quite a bit of changesets on the wrong named
> branch. So my graph looks like
>
>
> â changeset: 368:072bfc0424f6
> â Branch: mac
> â tag: tip
> â Author: Uwe Brauer <oub at mat.ucm.es>
> â Date: Fri, 29 Apr 2022 10:22:43 +0200
> â Topic: hacks
> â Phase: draft
> â Summary: New function, generatlising org-set-property
> â
> â changeset: 367:600a0049f89e
> â Branch: mac
> â Author: Uwe Brauer <oub at mat.ucm.es>
> â Date: Tue, 19 Apr 2022 10:34:52 +0200
> â Topic: hacks
> â Phase: draft
> â Summary: Snapshot for backup
> |
>
>
> Etc
> â changeset: 348:db2bd003001c
> â Branch: mac
> â Author: Uwe Brauer <oub at mat.ucm.es>
> â Date: Tue, 08 Jun 2021 16:05:46 +0200
> â Topic: hacks
> â Phase: draft
> â Summary: update to mac branch
> â
> â changeset: 347:b8a54846c084
> â Branch: default
> â Author: Uwe Brauer <oub at mat.ucm.es>
> â Date: Sun, 30 May 2021 18:21:15 +0200
> â Topic: hacks
> â Phase: draft
> â Summary: Snapshot
>
>
>
>
> So I basically want all the changesets from 348-368 to be on the default
> branch not on the mac branch.
>
> I am afraid of the rebase command, so I prefer to use graft, but I obtain
>
> hg graft --log -r 348::368 -r 347
>
> skipping ancestor revision 348:db2bd003001c
>
> Since it is a linear history.
>
> Any idea what to do (ok I could use evolve since the changesets are in
> draft mode, but I prefer to avoid that
>
>
> Any ideas
>
> Uwe Brauer
>
> --
> I strongly condemn Putin's war of aggression against the Ukraine.
> I support to deliver weapons to Ukraine's military.
> I support the ban of Russia from SWIFT.
> I support the EU membership of the Ukraine.
________________________________
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
More information about the Mercurial
mailing list