Patchwork [5,of,6] crecord: remove things that don't happen in functions from their docstrings

login
register
mail settings
Submitter Anton Shestakov
Date May 5, 2016, 1:54 p.m.
Message ID <5d66cb69e27668f0faf5.1462456445@neuro>
Download mbox | patch
Permalink /patch/14918/
State Accepted
Headers show

Comments

Anton Shestakov - May 5, 2016, 1:54 p.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1462448440 -28800
#      Thu May 05 19:40:40 2016 +0800
# Node ID 5d66cb69e27668f0faf5be918c5bdde55342eb19
# Parent  e4e9dd44a5c6bab85e0a132e3c5c5cfad9b7e56b
crecord: remove things that don't happen in functions from their docstrings

Scrolling screen is currently done in a different place. The things that had
been described in the docstrings may still happen, but the functions touched by
this patch don't do any scrolling, they only set self.currentselecteditem and
nothing more.

Patch

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -600,9 +600,6 @@  class curseschunkselector(object):
         the last hunkline of the hunk prior to the selected hunk.  or, if
         the first hunkline of a hunk is currently selected, then select the
         hunk itself.
-
-        if the currently selected item is already at the top of the screen,
-        scroll the screen down to show the new-selected item.
         """
         currentitem = self.currentselecteditem
 
@@ -620,9 +617,6 @@  class curseschunkselector(object):
         select (if possible) the previous item on the same level as the
         currently selected item.  otherwise, select (if possible) the
         parent-item of the currently selected item.
-
-        if the currently selected item is already at the top of the screen,
-        scroll the screen down to show the new-selected item.
         """
         currentitem = self.currentselecteditem
         nextitem = currentitem.previtem()
@@ -643,9 +637,6 @@  class curseschunkselector(object):
         the first hunkline of the selected hunk.  or, if the last hunkline of
         a hunk is currently selected, then select the next hunk, if one exists,
         or if not, the next header if one exists.
-
-        if the currently selected item is already at the bottom of the screen,
-        scroll the screen up to show the new-selected item.
         """
         #self.startprintline += 1 #debug
         currentitem = self.currentselecteditem