diff -r 31f3636e9296 -r 724421cb4745 mercurial/patch.py --- a/mercurial/patch.py Thu May 28 16:41:47 2015 -0700 +++ b/mercurial/patch.py Wed May 27 15:56:10 2015 -0700 @@ -950,6 +950,8 @@ def filterpatch(ui, headers, operation=None): """Interactively filter patch chunks into applied-only chunks""" + if operation is None: + operation = _('record') def prompt(skipfile, skipall, query, chunk): """prompt query, and process base inputs