# HG changeset patch # User Martin Geisler # Date 1304673115 -7200 # Node ID e3da95f84bcd2a5939ed9ec67088b6fe162fcf12 # Parent e5a59d31bb04eab28fba771461d530930aa49250 annotate: use real Booleans instead of 0/1 diff -r e5a59d31bb04 -r e3da95f84bcd 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')):