D11832: chistedit: explain which order the commits are presented in
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Nov 30 16:46:33 UTC 2021
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
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):
To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list