Mercurial > hg
changeset 8119:af44d0b953c6
cmdutil: return boolean result directly in want function
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 22 Apr 2009 17:15:59 +0200 |
parents | 35f7fda52c92 |
children | 2b36ed5c1911 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Apr 22 17:14:58 2009 +0200 +++ b/mercurial/cmdutil.py Wed Apr 22 17:15:59 2009 +0200 @@ -1142,9 +1142,7 @@ 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