Patchwork D11832: chistedit: explain which order the commits are presented in

login
register
mail settings
Submitter phabricator
Date Nov. 30, 2021, 4:46 p.m.
Message ID <differential-rev-PHID-DREV-ku5rekobh2xd5xfclhtc-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50158/
State Superseded
Headers show

Comments

phabricator - Nov. 30, 2021, 4:46 p.m.
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  It's not obvious which order the commits in chistedit (and text-based
  histedit), so let's add a note about it.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11832

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -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 below.\n"
+            else:
+                help += b"Older commits are shown above newer commits below.\n"
         return help.splitlines()
 
     def render_help(self, win):