Mercurial > public > mercurial-scm > hg
diff relnotes/next @ 46087:64292addbe67
diff: add --from and --to flags as clearer alternative to -r -r
I think it was mistake to let the `-r` flag accept two revisions in
`hg diff` in 98633e60067c (Support for 0, 1, or 2 diff revs,
2005-05-07). The command clearly acts on two revisions and having a
single flag to indicate which those are is unclear. It got worse when
it started accepting revsets as input.
This patch introduces `--from` and `--to` flags, each taking a single
revision and each defaulting to the working copy. That means that `hg
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 09 Dec 2020 18:31:19 -0800 |
parents | cb623dedb17c |
children | 4d5e2fd53707 |
line wrap: on
line diff
--- a/relnotes/next Thu Dec 03 17:18:49 2020 +0530 +++ b/relnotes/next Wed Dec 09 18:31:19 2020 -0800 @@ -20,6 +20,9 @@ * `hg strip`, from the strip extension, is now a core command, `hg debugstrip`. The extension remains for compatibility. + * `hg diff` now supports `--from <rev>` and `--to <rev>` arguments as + clearer alternatives to `-r <revs>`. + * The memory footprint per changeset during pull/unbundle operations has been further reduced.