# HG changeset patch # User Anton Shestakov # Date 2016-05-05 10:13:25 # Node ID 90bb5bdb0b2f789b77e88c0d22ab09882af2b101 # Parent eeacfa36ed3f8c3b3a9004f73006bd9dabee66ab 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() diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -164,7 +164,7 @@ class patchnode(object): 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 @@ class patchnode(object): 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: