/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/grep.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-28 02:47:10 UTC
  • mfrom: (7519.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200728024710-a2ylds219f1lsl62
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/388173

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
 
17
from io import BytesIO
19
18
import re
20
19
 
21
20
from .lazy_import import lazy_import
40
39
    RevisionSpec_revid,
41
40
    RevisionSpec_revno,
42
41
    )
43
 
from .sixish import (
44
 
    BytesIO,
45
 
    )
46
42
 
47
43
_user_encoding = osutils.get_user_encoding()
48
44
 
423
419
    if not tree:
424
420
        msg = ('Cannot search working tree. Working tree not found.\n'
425
421
               'To search for specific revision in history use the -r option.')
426
 
        raise errors.BzrCommandError(msg)
 
422
        raise errors.CommandError(msg)
427
423
 
428
424
    # GZ 2010-06-02: Shouldn't be smuggling this on opts, but easy for now
429
425
    opts.outputter = _Outputter(opts)