diff mercurial/cmdutil.py @ 3838:dec4eba7ccad

Use util.always instead of creating a new lambda function in show_changeset and simplify the expression.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 09 Dec 2006 09:30:29 +0100
parents 7df171ea50cd
children 1e0b94cfba0e e37786b29bed
line wrap: on
line diff
--- 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'):