crecord: fix a typo introduced when moving crecord to core stable
authorLaurent Charignon <lcharignon@fb.com>
Fri, 05 Jun 2015 10:44:34 -0700
branchstable
changeset 25447 093d38165e5a
parent 25426 5f3666da6910
child 25449 c39640d26a4c
child 25460 bd4bcfa48c9e
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'.
mercurial/crecord.py
--- a/mercurial/crecord.py	Mon Jun 01 18:06:20 2015 -0400
+++ b/mercurial/crecord.py	Fri Jun 05 10:44:34 2015 -0700
@@ -1332,7 +1332,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)
@@ -1547,7 +1547,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()