Death to "hg update -C"
Aurélien Campéas
aurelien.campeas at logilab.fr
Tue Jul 21 09:16:24 CDT 2009
On Tue, Jul 21, 2009 at 03:37:28PM +0200, Jelle Herold wrote:
> Hello,
>
> As much as I love mercurial, I *really hate* "update -C"...
>
> This is the second time I lost work due to some confusion with
> hg merge, hg revert and hg update '-C'.
>
> (extra disastrous this time where 1. failed backups and
> 2. I actually destroyed the work of a colleague).
>
> So, I know the real bug is in front of the screen, touching
> the keyboard. But IMHO mercurial should take extreme measures
> never to loose any (outstanding) work.
>
> Even if I say '-C', many times I don't mean it.
> I suppose I'm not the only one?
>
> Can this be fixed?
>
The warning about update -C consequences blowing your uncommitted
changes could be made all caps ?
It could even advertise some handy extension like shelve, in green
colors ... ?
But I know what you mean, there. The suggestion made to 'update -C' is
indeed likely to confuse some poor newbie.
More information about the Mercurial
mailing list