spurious error with hg branch foo; hg up
Faheem Mitha
faheem at email.unc.edu
Thu Sep 17 22:49:03 CDT 2009
Hi,
$ hg init ex; cd ex; hg branch foo; hg up;
gives
abort: branch foo not found
This message misleadingly appears to be an error, because hg is trying to
update to the tip of a branch that does not exist yet. In this case it
really needs to go nowhere, since it is already at the tip. I think no
message is really needed here, or at any rate a less alarming one. There
are probably other similar cases, but I've not thought through all the
possibilities. Thanks to Benoit Boissinot for discussing this on IRC.
Please CC me on any reply.
Regards, Faheem.
More information about the Mercurial-devel
mailing list