[PATCH STABLE] crecord: fix three typos introduced while moving crecord into core

Laurent Charignon lcharignon at fb.com
Fri Jun 5 15:05:04 CDT 2015


# HG changeset patch
# User Laurent Charignon <lcharignon at fb.com>
# Date 1433534241 25200
#      Fri Jun 05 12:57:21 2015 -0700
# Branch stable
# Node ID 152fa551391ae9bf842e5851b4734c722a724f3a
# Parent  093d38165e5ab7eb0c34a56b843ac6c81474b495
crecord: fix three typos introduced while moving crecord into core

When moving crecord to core, I did a search an replace to remove all of the
variable with caps letter. Doing so, I unfortunately changed some commands
with capital letter shortcut to their lowercase counterpart. I fixed one
of these cases in 093d38165e5a. This patch fixes all of the remaining cases.

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -1328,9 +1328,9 @@
                 [space] : (un-)select item ([~]/[x] = partly/fully applied)
                       a : (un-)select all items
     up/down-arrow [k/j] : go to previous/next unfolded item
-        pgup/pgdn [k/j] : go to previous/next item of same type
+        pgup/pgdn [K/J] : go to previous/next item of same type
  right/left-arrow [l/h] : go to child item / parent item
- shift-left-arrow   [h] : go to parent header / fold selected header
+ shift-left-arrow   [H] : go to parent header / fold selected header
                       f : fold / unfold item, hiding/revealing its children
                       F : fold / unfold parent item and all of its ancestors
                       m : edit / resume editing the commit message
@@ -1517,17 +1517,17 @@
     def handlekeypressed(self, keypressed, test=False):
         if keypressed in ["k", "KEY_UP"]:
             self.uparrowevent()
-        if keypressed in ["k", "KEY_PPAGE"]:
+        if keypressed in ["K", "KEY_PPAGE"]:
             self.uparrowshiftevent()
         elif keypressed in ["j", "KEY_DOWN"]:
             self.downarrowevent()
-        elif keypressed in ["j", "KEY_NPAGE"]:
+        elif keypressed in ["J", "KEY_NPAGE"]:
             self.downarrowshiftevent()
         elif keypressed in ["l", "KEY_RIGHT"]:
             self.rightarrowevent()
         elif keypressed in ["h", "KEY_LEFT"]:
             self.leftarrowevent()
-        elif keypressed in ["h", "KEY_SLEFT"]:
+        elif keypressed in ["H", "KEY_SLEFT"]:
             self.leftarrowshiftevent()
         elif keypressed in ["q"]:
             raise util.Abort(_('user quit'))


More information about the Mercurial-devel mailing list