[PATCH] switch: add a switch extension to easily move between branches (issue4420)

timeless timeless at gmail.com
Mon Feb 29 10:33:26 EST 2016


liscju wrote:
> +  $ hg switch -h
> +  hg switch [BRANCH]
you're missing [OPTIONS] before [BRANCH]
[OPTIONS] refers to -a/-c below. Otherwise what you're saying is that
there are no options, the only optional thing is a branch name.
(there are other ways to write it, e.g. [-a|-c] but that's harder to maintain.)

> +
> +  switches to given branch or show possible switch destination

you're missing a blank line here.

> +      With no arguments show possible switch destination.

`hg help branch` says "With no argument", I'd encourage you to use its
specific wording (if I later change it, I'll try to change all
matching text at the same time...).


> With one argument
> +      saves changes made to the working directory,
> update to given branch and

"saves... update*s* ... restore*s*"

> +      restore saved changes.

> Before switching to other branch it marks
> +      new/missing files as added/removed.

respectively

> +  options:
> +
> +   -a --abort    abort an incomplete switch operation
> +   -c --continue continue an incomplete switch operation


More information about the Mercurial-devel mailing list