changeset 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 dc4edca39e41
children 37c0d93fb166
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Oct 03 18:01:21 2013 +0200
+++ b/mercurial/cmdutil.py	Thu Oct 03 18:01:21 2013 +0200
@@ -933,7 +933,7 @@
     regular display via changeset_printer() is done.
     """
     # options
-    patch = False
+    patch = None
     if opts.get('patch') or opts.get('stat'):
         patch = scmutil.matchall(repo)