crecord: remove skipfolded keyword argument from patchnode.previtem()
authorAnton Shestakov <av6@dwimlabs.net>
Thu, 05 May 2016 18:13:25 +0800
changeset 29079 90bb5bdb0b2f
parent 29078 eeacfa36ed3f
child 29080 38f373497784
crecord: remove skipfolded keyword argument from patchnode.previtem() It wasn't used, it wasn't implemented. Probably was a copy-paste bonus from patchnode.nextitem()
mercurial/crecord.py
--- a/mercurial/crecord.py	Thu May 05 15:19:37 2016 +0800
+++ b/mercurial/crecord.py	Thu May 05 18:13:25 2016 +0800
@@ -164,7 +164,7 @@
             except AttributeError: # parent and/or grandparent was None
                 return None
 
-    def previtem(self, constrainlevel=True, skipfolded=True):
+    def previtem(self, constrainlevel=True):
         """
         If constrainLevel == True, return the closest previous item
         of the same type where there are no items of different types between
@@ -174,10 +174,6 @@
         closest to this item, regardless of item's type (header, hunk, or
         HunkLine).
 
-        If skipFolded == True, and the current item is folded, then the items
-        that are hidden due to folding will be skipped when determining the
-        next item.
-
         If it is not possible to get the previous item, return None.
         """
         if constrainlevel: