/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: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

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 io import BytesIO
 
17
from __future__ import absolute_import
 
18
 
18
19
import re
19
20
 
20
21
from .lazy_import import lazy_import
39
40
    RevisionSpec_revid,
40
41
    RevisionSpec_revno,
41
42
    )
 
43
from .sixish import (
 
44
    BytesIO,
 
45
    )
42
46
 
43
47
_user_encoding = osutils.get_user_encoding()
44
48
 
419
423
    if not tree:
420
424
        msg = ('Cannot search working tree. Working tree not found.\n'
421
425
               'To search for specific revision in history use the -r option.')
422
 
        raise errors.CommandError(msg)
 
426
        raise errors.BzrCommandError(msg)
423
427
 
424
428
    # GZ 2010-06-02: Shouldn't be smuggling this on opts, but easy for now
425
429
    opts.outputter = _Outputter(opts)