/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/status.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import sys
20
20
 
21
 
from breezy import (
 
21
from . import (
22
22
    delta as _mod_delta,
23
23
    hooks as _mod_hooks,
24
24
    log,
26
26
    tsort,
27
27
    revision as _mod_revision,
28
28
    )
29
 
import breezy.errors as errors
30
 
from breezy.trace import mutter, warning
 
29
from . import errors as errors
 
30
from .trace import mutter, warning
31
31
 
32
32
# TODO: when showing single-line logs, truncate to the width of the terminal
33
33
# if known, but only if really going to the terminal (not into a file)
144
144
        elif len(revision) > 0:
145
145
            try:
146
146
                old = revision[0].as_tree(wt.branch)
147
 
            except errors.NoSuchRevision, e:
 
147
            except errors.NoSuchRevision as e:
148
148
                raise errors.BzrCommandError(str(e))
149
149
            if (len(revision) > 1) and (revision[1].spec is not None):
150
150
                try:
151
151
                    new = revision[1].as_tree(wt.branch)
152
152
                    new_is_working_tree = False
153
 
                except errors.NoSuchRevision, e:
 
153
                except errors.NoSuchRevision as e:
154
154
                    raise errors.BzrCommandError(str(e))
155
155
            else:
156
156
                new = wt