Bookmarks - Tutorial / Git comparison

Mads Kiilerich mads at kiilerich.com
Mon Jul 12 13:58:12 UTC 2010


On 07/12/2010 03:47 PM, Daniel Carrera wrote:
> On Mon, Jul 12, 2010 at 3:13 PM, Tony Mechelynck
> <antoine.mechelynck at gmail.com>  wrote:
>> There are, however, extensions (among which rebase, mq, transplant IIRC)
>> which will rewrite your history (as a result of a specific command); but hg
>> will never rewrite history on its own indeed: the base idea remains that
>> Mercurial history is cast in bronze.
>
> MQ and transplant do not destroy anything.

That is usually true.

> MQ manages patches outside
> of history, and transplants lets you cherry pick a patch from another
> branch and apply it to this branch. Neither of these is a destructive
> operation, and neither carries the risk of losing data.

That is not true.

Core Mercurial is append-only and thus as safe as anything on a computer 
can be.

MQ (which isn't a part of core Mercurial) strips revisions from the 
repository and thus circumvents the usual safe-by-design guarantee. MQ 
is a very powerful tool but it can be dangerous.

/Mads



More information about the Mercurial mailing list