diff tests/test-help.t @ 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 d010adc483cc
children ed5a0b5d21a6
line wrap: on
line diff
--- a/tests/test-help.t	Thu Dec 03 17:18:49 2020 +0530
+++ b/tests/test-help.t	Wed Dec 09 18:31:19 2020 -0800
@@ -662,6 +662,8 @@
   options ([+] can be repeated):
   
    -r --rev REV [+]         revision
+      --from REV            revision to diff from
+      --to REV              revision to diff to
    -c --change REV          change made by revision
    -a --text                treat all files as text
    -g --git                 use git extended diff format