Mercurial > hg
comparison mercurial/cmdutil.py @ 19894:df91e2df6ba3
cmdutil: use None as default value for "function pointer" instead of False
Less type confusion.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 03 Oct 2013 18:01:21 +0200 |
parents | 0532c8f8e911 |
children | b7f76db06dc0 |
comparison
equal
deleted
inserted
replaced
19893:dc4edca39e41 | 19894:df91e2df6ba3 |
---|---|
931 4. [ui] setting 'style' | 931 4. [ui] setting 'style' |
932 If all of these values are either the unset or the empty string, | 932 If all of these values are either the unset or the empty string, |
933 regular display via changeset_printer() is done. | 933 regular display via changeset_printer() is done. |
934 """ | 934 """ |
935 # options | 935 # options |
936 patch = False | 936 patch = None |
937 if opts.get('patch') or opts.get('stat'): | 937 if opts.get('patch') or opts.get('stat'): |
938 patch = scmutil.matchall(repo) | 938 patch = scmutil.matchall(repo) |
939 | 939 |
940 tmpl = opts.get('template') | 940 tmpl = opts.get('template') |
941 style = None | 941 style = None |