changeset 48419:9503e15dc588

chistedit: explain which order the commits are presented in It's not obvious which order the commits in chistedit (and text-based histedit), so let's add a note about it. Differential Revision: https://phab.mercurial-scm.org/D11832
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 18 Oct 2021 12:30:53 -0700
parents 45a073af50a2
children e9d588b28710
files hgext/histedit.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Mon Nov 22 17:21:55 2021 -0800
+++ b/hgext/histedit.py	Mon Oct 18 12:30:53 2021 -0700
@@ -1324,6 +1324,10 @@
 d: drop, e: edit, f: fold, m: mess, p: pick, r: roll
 pgup/K: move patch up, pgdn/J: move patch down, c: commit, q: abort
 """
+            if self.later_on_top:
+                help += b"Newer commits are shown above older commits.\n"
+            else:
+                help += b"Older commits are shown above newer commits.\n"
         return help.splitlines()
 
     def render_help(self, win):