Options for undoing / reverting earlier commit

Marcin Kasperski Marcin.Kasperski at mekk.waw.pl
Tue Oct 15 10:51:49 UTC 2024


Simon Harrison <info at simonh.uk> writes:

> Let's say I have a repo with 100 commits.
>
> For some reason I'm not happy with r50 and would like to remove *some*
> of the changes that are in that revision, but keep all following
> commits. What are my options to achieve this? I've been looking at
> "revert" and "backout" but unless I'm mistaken, they don't offer an
> interactive option (and may not be designed for this use case).
>
> Alternatively, perhaps a patch could be generated and then unapplied?
>

If the history is not published yet (or if you control all peers),
I would definitely look at evolve…

https://www.mercurial-scm.org/doc/evolution/


More information about the Mercurial mailing list