# HG changeset patch # User Anton Shestakov # Date 1462448440 -28800 # Node ID 38f37349778427002550d5e978b6679dd73777d7 # Parent 90bb5bdb0b2f789b77e88c0d22ab09882af2b101 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. diff -r 90bb5bdb0b2f -r 38f373497784 mercurial/crecord.py --- a/mercurial/crecord.py Thu May 05 18:13:25 2016 +0800 +++ b/mercurial/crecord.py Thu May 05 19:40:40 2016 +0800 @@ -600,9 +600,6 @@ 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 @@ 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 @@ 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