cmdutil: use None as default value for "function pointer" instead of False
authorMads Kiilerich <madski@unity3d.com>
Thu, 03 Oct 2013 18:01:21 +0200
changeset 19894 df91e2df6ba3
parent 19893 dc4edca39e41
child 19895 37c0d93fb166
cmdutil: use None as default value for "function pointer" instead of False Less type confusion.
mercurial/cmdutil.py
--- 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)