annotate: use real Booleans instead of 0/1
authorMartin Geisler <mg@aragost.com>
Fri, 06 May 2011 11:11:55 +0200
changeset 14216 e3da95f84bcd
parent 14215 e5a59d31bb04
child 14217 71d5287351e9
annotate: use real Booleans instead of 0/1
mercurial/commands.py
--- a/mercurial/commands.py	Fri May 06 10:02:46 2011 +0200
+++ b/mercurial/commands.py	Fri May 06 11:11:55 2011 +0200
@@ -99,7 +99,7 @@
     if opts.get('follow'):
         # --follow is deprecated and now just an alias for -f/--file
         # to mimic the behavior of Mercurial before version 1.5
-        opts['file'] = 1
+        opts['file'] = True
 
     datefunc = ui.quiet and util.shortdate or util.datestr
     getdate = util.cachefunc(lambda x: datefunc(x[0].date()))
@@ -116,7 +116,7 @@
 
     if (not opts.get('user') and not opts.get('changeset')
         and not opts.get('date') and not opts.get('file')):
-        opts['number'] = 1
+        opts['number'] = True
 
     linenumber = opts.get('line_number') is not None
     if linenumber and (not opts.get('changeset')) and (not opts.get('number')):