mercurial/cmdutil.py
changeset 3838 dec4eba7ccad
parent 3837 7df171ea50cd
child 3885 1e0b94cfba0e
child 4055 e37786b29bed
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -524,9 +524,7 @@ def show_changeset(ui, repo, opts, buffe
     # options
     patch = False
     if opts.get('patch'):
-        patch = lambda x: True
-        if matchfn:
-            patch = matchfn
+        patch = matchfn or util.always
 
     br = None
     if opts.get('branches'):