hg rollback / hg revert / hg ?? a merge - hg merge could tell it to the user

Mads Kiilerich mads at kiilerich.com
Tue Jun 29 09:17:09 CDT 2010


(Moving to -devel)

On 06/29/2010 03:57 PM, Greg Ward wrote:
> On Mon, Jun 28, 2010 at 9:06 AM, Mads Kiilerich<mads at kiilerich.com>  wrote:
>> I tend to agree. Perhaps a more convenient alias could be added, but right
>> now "hg update --clean ." is the right way to do it.
>
> IMHO there should not be a convenient alias for "update -C .".  The
> whole purpose of "update -C ." is to destroy information.  It throws
> away any uncommitted changes in your working directory.  It's
> *dangerous*!

The command is however so obscure and non-trivial that new users don't 
understand it and how dangerous it is. They will blindly copy the 
command and perhaps notice that it is a kind of "update", and they are 
perhaps familiar with "update" and know that it normally isn't that 
dangerous. They don't notice how big difference -C does, and they 
probably forget "." and thus get unexpected behaviour.

I guess that most new users would be able to understand the seriousness 
and remember a command like "hg nuke".

/Mads


More information about the Mercurial-devel mailing list