Wrong argument for "bzr log --timezone" triggers internal error

Bug #178722 reported by Ming Hua
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Unassigned

Bug Description

This is on Debian unstable, bzr version 1.0 (package version 1.0-1).

I didn't read the doc for "bzr log" carefully and thought the --timezone option takes the timezone name as argument. So I tried "bzr log --timezone CST", which triggers an internal error:
$ bzr log --timezone CST
------------------------------------------------------------
revno: 107
committer: Ming Hua <[deleted to avoid spam]>
branch nick: trunk
bzr: ERROR: exceptions.TypeError: __init__() takes at most 2 arguments (3 given)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 768, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1750, in run
    limit=limit)
  File "/usr/lib/python2.4/site-packages/bzrlib/log.py", line 189, in show_log
    start_revision, end_revision, search, limit)
  File "/usr/lib/python2.4/site-packages/bzrlib/log.py", line 312, in _show_log
    lf.log_revision(lr)
  File "/usr/lib/python2.4/site-packages/bzrlib/log.py", line 679, in log_revision
    self.show_timezone)
  File "/usr/lib/python2.4/site-packages/bzrlib/osutils.py", line 674, in format_date
    ['options are "utc", "original", "local"'])
TypeError: __init__() takes at most 2 arguments (3 given)

bzr 1.0.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'log', '--timezone', 'CST']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.0.0]
  launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/lib/python2.4/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
  rebase /usr/lib/python2.4/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.4/site-packages/bzrlib/plugins/svn [0.4.5]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

If the developers prefer bugs with Debian package to be reported in Debian BTS first, please say so and I'll happily comply.

Related branches

Changed in bzr:
milestone: none → 1.1
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.