Death to "hg update -C"

L. David Baron dbaron at dbaron.org
Tue Jul 21 10:15:03 CDT 2009


On Tuesday 2009-07-21 09:27 -0500, Matt Mackall wrote:
> 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.

It doesn't "work like -C but only if you've already got a clean
working directory" in the case where the update crosses branches.
(Nor does "hg up -cC".)

My primary use for "hg up -C" is doing an update that crosses
branches on an already clean tree.  In many cases I'm careful to
diff before doing it, but not always.

I'd love to have a safer way to update across branches (i.e., one
that checked that there weren't diffs in my tree and gave an error
if there were) and get out of the habit of typing "hg up -C" all the
time.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/


More information about the Mercurial mailing list