# HG changeset patch # User Denis Laxalde # Date 2016-06-07 09:57:11 # Node ID baab9ea4426ca658d191119bfa8715eb40a39d82 # Parent d48fc6f318a3b112fe3b5e22345ecf9543729590 crecord: drop unused "operation" parameter from filterpatch function diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -83,7 +83,7 @@ def filterchunks(ui, originalhunks, usec else: recordfn = crecordmod.chunkselector - return crecordmod.filterpatch(ui, originalhunks, recordfn, operation) + return crecordmod.filterpatch(ui, originalhunks, recordfn) else: return patch.filterpatch(ui, originalhunks, operation) diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -440,11 +440,8 @@ class uihunk(patchnode): def __repr__(self): return '' % (self.filename(), self.fromline) -def filterpatch(ui, chunks, chunkselector, operation=None): +def filterpatch(ui, chunks, chunkselector): """interactively filter patch chunks into applied-only chunks""" - - if operation is None: - operation = _('confirm') chunks = list(chunks) # convert chunks list into structure suitable for displaying/modifying # with curses. create a list of headers only.