diff -r b333ca94403d -r c1f5ef76d1c2 mercurial/patch.py --- a/mercurial/patch.py Sun Apr 26 18:13:48 2015 +0900 +++ b/mercurial/patch.py Wed May 27 15:49:24 2015 -0700 @@ -948,7 +948,7 @@ def __repr__(self): return '' % (self.filename(), self.fromline) -def filterpatch(ui, headers): +def filterpatch(ui, headers, operation=None): """Interactively filter patch chunks into applied-only chunks""" def prompt(skipfile, skipall, query, chunk):