Patchwork [1,of,2] crecord: rewrite help string to avoid mentioning "crecord"

login
register
mail settings
Submitter Jordi Gutiérrez Hermoso
Date Dec. 12, 2019, 4:42 p.m.
Message ID <faab1971e30741d00b3d.1576168943@chloe>
Download mbox | patch
Permalink /patch/43743/
State Accepted
Headers show

Comments

Jordi Gutiérrez Hermoso - Dec. 12, 2019, 4:42 p.m.
# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh@octave.org>
# Date 1576168650 18000
#      Thu Dec 12 11:37:30 2019 -0500
# Node ID faab1971e30741d00b3d0a44548086e6203beca3
# Parent  49fa0b31ee1d84c44eab951f36fb7386e3fced22
crecord: rewrite help string to avoid mentioning "crecord"

Despite its heritage, "crecord" is now mostly Mercurial-internal
jargon. I find it better to call it "the curses hunk selector".

Also slightly rewrote the part about which commands can use it. While
I do believe that commit, shelve, and revert are the only commands in
core that can use it, Evolve also adds at least amend and uncommit to
the list.
Yuya Nishihara - Dec. 16, 2019, 1:08 p.m.
On Thu, 12 Dec 2019 11:42:23 -0500, Jordi Gutiérrez Hermoso wrote:
> # HG changeset patch
> # User Jordi Gutiérrez Hermoso <jordigh@octave.org>
> # Date 1576168650 18000
> #      Thu Dec 12 11:37:30 2019 -0500
> # Node ID faab1971e30741d00b3d0a44548086e6203beca3
> # Parent  49fa0b31ee1d84c44eab951f36fb7386e3fced22
> crecord: rewrite help string to avoid mentioning "crecord"

Queued, thanks.

Patch

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -1615,12 +1615,13 @@  class curseschunkselector(object):
         helptext = _(
             """            [press any key to return to the patch-display]
 
-crecord allows you to interactively choose among the changes you have made,
-and confirm only those changes you select for further processing by the command
-you are running (commit/shelve/revert), after confirming the selected
-changes, the unselected changes are still present in your working copy, so you
-can use crecord multiple times to split large changes into smaller changesets.
-the following are valid keystrokes:
+The curses hunk selector allows you to interactively choose among the
+changes you have made, and confirm only those changes you select for
+further processing by the command you are running (such as commit,
+shelve, or revert). After confirming the selected changes, the
+unselected changes are still present in your working copy, so you can
+use the hunk selector multiple times to split large changes into
+smaller changesets. the following are valid keystrokes:
 
               x [space] : (un-)select item ([~]/[x] = partly/fully applied)
                 [enter] : (un-)select item and go to next item of same type