Suboptimal documentation?
Matt Mackall
mpm at selenic.com
Mon Nov 24 20:02:26 UTC 2014
On Mon, 2014-11-24 at 16:38 +0000, Alan Mackenzie wrote:
> Hello, Mercurial.
>
> hg help branch (and the corresponding bit in the man page) says:
>
> With no argument, show the current branch name. With one argument,
> set the working directory branch name (the branch will not exist in the
> repository until the next commit). Standard practice recommends that
> primary development take place on the 'default' branch.
>
> Although one can work through this to a meaning, it is surely more
> opaque than it need be. hg branch _creates_ a branch; it does not
> rename the current branch (which is a possible interpretation of "set
> the working directory branch name").
>
> How about the following replacement for the second sentence:
>
> With one argument, create a new branch with that name. The branch
> will exist in the repository after the next commit.
This is not a standard patch format.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list