~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Martin Pool
  • Date: 2006-06-20 03:57:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620035711-400bb6b6bc6ff95b
Add pyflakes makefile target; fix many warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib.delta import compare_trees
20
20
from bzrlib.diff import _raise_if_nonexistent
21
 
from bzrlib.errors import NoSuchRevision
 
21
import bzrlib.errors as errors
22
22
from bzrlib.log import line_log
23
23
from bzrlib.osutils import is_inside_any
24
 
from bzrlib.symbol_versioning import *
 
24
from bzrlib.symbol_versioning import (deprecated_function,
 
25
        zero_eight,
 
26
        )
25
27
 
26
28
# TODO: when showing single-line logs, truncate to the width of the terminal
27
29
# if known, but only if really going to the terminal (not into a file)
122
124
            try:
123
125
                rev_id = revision[0].in_history(wt.branch).rev_id
124
126
                old = wt.branch.repository.revision_tree(rev_id)
125
 
            except NoSuchRevision, e:
126
 
                raise BzrCommandError(str(e))
 
127
            except errors.NoSuchRevision, e:
 
128
                raise errors.BzrCommandError(str(e))
127
129
            if (len(revision) > 1) and (revision[1].spec is not None):
128
130
                try:
129
131
                    rev_id = revision[1].in_history(wt.branch).rev_id
130
132
                    new = wt.branch.repository.revision_tree(rev_id)
131
133
                    new_is_working_tree = False
132
 
                except NoSuchRevision, e:
133
 
                    raise BzrCommandError(str(e))
 
134
                except errors.NoSuchRevision, e:
 
135
                    raise errors.BzrCommandError(str(e))
134
136
            else:
135
137
                new = wt
136
138
        _raise_if_nonexistent(specific_files, old, new)
180
182
                mm_revision = branch.repository.get_revision(mmerge)
181
183
                print >> to_file, '   ', line_log(mm_revision, 75)
182
184
                ignore.add(mmerge)
183
 
        except NoSuchRevision:
184
 
            print >> to_file, ' ', merge 
 
185
        except errors.NoSuchRevision:
 
186
            print >> to_file, ' ', merge
185
187
        
186
188
def list_paths(header, paths, specific_files, to_file):
187
189
    done_header = False