--match option doesn't work

Bug #1177984 reported by Daniel Manrique
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr (Ubuntu)
Confirmed
High
Unassigned

Bug Description

How to reproduce:

$ bzr branch lp:casper
$ cd casper
$ bzr log --match-bugs 1065827

Expected result:

- The log entry for the commit that fixes bug 1065827.

Actual result:

bzr: ERROR: exceptions.TypeError: expected string or buffer

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 2893, in run
    Logger(b, rqst).show(lf)
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 382, in show
    self._show_body(lf)
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 411, in _show_body
    for lr in generator.iter_log_revisions():
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 451, in iter_log_revisions
    for revs in revision_iterator:
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 872, in _filter_re
    new_revs = [rev for rev in revs if _match_filter(searchRE, rev[1])]
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 886, in _match_filter
    if k in strings and not _match_any_filter(strings[k], v):
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 891, in _match_any_filter
    return any([filter(None, map(re.search, strings)) for re in res])
TypeError: expected string or buffer

bzr 2.6.0dev3 on python 2.7.4 (Linux-3.8.0-19-generic-x86_64-with-
    Ubuntu-13.04-raring)
arguments: ['/usr/bin/bzr', 'log', '--match-bugs', '1065827']
plugins: bash_completion[2.6.0dev3], changelog_merge[2.6.0dev3],
    fastimport[0.13.0], gnulog[unknown], grep[2.6.0dev3],
    launchpad[2.6.0dev3], netrc_credential_store[2.6.0dev3],
    news_merge[2.6.0dev3], po_merge[2.6.0dev3], qbzr[0.23.0],
    weave_fmt[2.6.0dev3]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_CA.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: bzr 2.6.0~bzr6571-4ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8
Uname: Linux 3.8.0-19-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Wed May 8 17:14:20 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-04-25 (13 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: bzr
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Daniel Manrique (roadmr) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

For what it is worth the "strings" that match_any_filter is failing on follows:

[(u'https://launchpad.net/bugs/1065827', u'fixed')]

Additionally, this may help in working around the issue depending on how the commit message was written.

bzr log --match-message '1065827'

Changed in bzr (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → High
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.