[PATCH] crecord: fix a typo introduced when moving crecord to core

Laurent Charignon lcharignon at fb.com
Fri Jun 5 12:46:11 CDT 2015


# HG changeset patch
# User Laurent Charignon <lcharignon at fb.com>
# Date 1433526274 25200
#      Fri Jun 05 10:44:34 2015 -0700
# Node ID af5ac4a1ad70a9fc2a413b29059d93d33b7ad7c3
# Parent  51e7acc34b0ab0e540dffdb22127914f2353d5e2
crecord: fix a typo introduced when moving crecord to 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 the 'F' command
to 'f' leading to two 'f' commands, one never used. This patch fixes this
mistake and re enables the behavior of 'F'.

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -1335,7 +1335,7 @@
  right/left-arrow [l/h] : go to child item / parent item
  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
+                      F : fold / unfold parent item and all of its ancestors
                       m : edit / resume editing the commit message
                       e : edit the currently selected hunk
                       a : toggle amend mode (hg rev >= 2.2)
@@ -1550,7 +1550,7 @@
             self.toggleedit(test=test)
         elif keypressed in ["f"]:
             self.togglefolded()
-        elif keypressed in ["f"]:
+        elif keypressed in ["F"]:
             self.togglefolded(foldparent=True)
         elif keypressed in ["?"]:
             self.helpwindow()


More information about the Mercurial-devel mailing list