# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 2024-02-15 03:40:47 # Node ID 7d85c6e59dd181b341021487a0d83eccdb97911b # Parent 82131be5258e6ac4076a86829b256891c659b870 crecord: add skipfolded param to previtem This just simplifies the API a bit so it matches `nextitem` and I can handle both nextitem and previtem symmetrically. diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -161,7 +161,7 @@ class patchnode: except AttributeError: # parent and/or grandparent was None return None - def previtem(self): + def previtem(self, skipfolded=None): """ Try to return the previous item closest to this item, regardless of item's type (header, hunk, or hunkline).