# HG changeset patch # User Martin Geisler # Date 2009-04-22 15:15:59 # Node ID af44d0b953c6e1a1d638d3ee097432ccf20b5348 # Parent 35f7fda52c929013aecb846103f1e2483d725877 cmdutil: return boolean result directly in want function diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1142,9 +1142,7 @@ def walkchangerevs(ui, repo, pats, chang if follow and not m.files(): ff = followfilter(onlyfirst=opts.get('follow_first')) def want(rev): - if ff.match(rev) and rev in wanted: - return True - return False + return ff.match(rev) and rev in wanted else: def want(rev): return rev in wanted