# HG changeset patch # User Thomas Arendsen Hein # Date 1165653029 -3600 # Node ID dec4eba7ccad37bebd7ebb788ab25ae69b7ea776 # Parent 7df171ea50cd9e3da3e37f431cc8e02eef015603 Use util.always instead of creating a new lambda function in show_changeset and simplify the expression. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- 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'):