rollback deprecation

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Jul 17 14:55:41 CDT 2013


On 17 Jul 2013, at 10:56 AM, Antoine Pitrou wrote:

> Kevin Bullock <kbullock+mercurial <at> ringworld.org> writes:
>>> 
>>> Rollback is deprecated? What is the recommended way to undo a bogus
>>> commit (especially a merge or graft)?
>>> AFAICT, "strip" isn't part of the core command set.
>> 
>> The same way we've always recommended: clone up to the parent of the
> bad revision (and any other heads), then
>> throw away the old clone.
> 
> That's a terribly obnoxious solution compared to "hg rollback".

It's a solution that works at the level of other user-facing commands, rather than digging dangerously into the internals of how revlogs work. It has -always- been our first recommended way of undoing a changeset you don't want.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list