Death to "hg update -C"

Augie Fackler durin42 at gmail.com
Tue Jul 21 10:27:07 CDT 2009


(mpm, apologies for the double-send. I failed at my MUA)

On Jul 21, 2009, at 9:27 AM, Matt Mackall wrote:

> On Tue, 2009-07-21 at 15:37 +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?
>
> No, it cannot be fixed. There are countless users, scripts, and even
> paper books that know about --clean. It is here forever.
>
> Perhaps you can teach yourself about hg up --check (-c) instead, which
> works like -C but only if you've already got a clean working  
> directory.

Then perhaps the error message shouldn't suggest -C anymore:
$ hg co tip
abort: crosses branches (use 'hg merge' or 'hg update -C')

Maybe it should suggest -c instead of -C?

> -- 
> http://selenic.com : development and support for Mercurial and Linux
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090721/f6f42c05/attachment.bin 


More information about the Mercurial-devel mailing list