D1270: help: adding a topic on flags

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Nov 8 12:52:31 EST 2017

martinvonz added inline comments.


> flags.txt:8
> +Additionally, some flags, such as --repository, are global and can be used with
> +any command - those are seen in :hg:`help -v`, and can be specified.
> +

The final "and can be specified" sounds a little truncated. Was there supposed to be something after? Or maybe it's no longer needed since you already said "can be used with any command"?

> flags.txt:36-39
> +    --flagname=foo
> +    --flagname foo
> +    -f=foo
> +    -f foo

`-ffoo` is also valid

> flags.txt:67
> +    [alias]
> +    commit = commit --interactive
> +

Do we recommend overriding the command like this or should the left side be called something else (maybe "icommit")? I really don't know what we recommend here, so don't take my question to imply that you shouldn't do it the way you have done it.

> flags.txt:86
> +
> +    hg commit -m "Used value"
> +

should be `committemp` here

> flags.txt:94
> +as described above.
> +Except for list flags, defaults can be overridden on the command line simplify
> +by specifying the flag in that location.


  rHG Mercurial


To: rdamazio, #hg-reviewers
Cc: av6, dlax, martinvonz, mercurial-devel

More information about the Mercurial-devel mailing list