--- 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')):