Death to "hg update -C"

Nicolas Dumazet nicdumz at gmail.com
Tue Jul 21 20:47:35 CDT 2009


2009/7/22 Augie Fackler <durin42 at gmail.com>:
>> 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?
>

I would agree with that, even if we're reluctant to changes to UI messages.

I think that our messages should reflect as much as possible only the
basic options, to avoid beginner havoc. If there is a way to do the
same operation, but with an additional safety check, I would suggest
the safe option.

Advanced users will eventually learn by themselves the destructive option :)

-- 
Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]



More information about the Mercurial-devel mailing list