chistedit: explain which order the commits are presented in
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 18 Oct 2021 12:30:53 -0700
changeset 48371 9503e15dc588
parent 48370 45a073af50a2
child 48372 e9d588b28710
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
hgext/histedit.py
--- 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):