~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textui.py

  • Committer: John Arbash Meinel
  • Date: 2008-05-29 19:46:01 UTC
  • mfrom: (3456 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3459.
  • Revision ID: john@arbash-meinel.com-20080529194601-r2gpmk536xin9c4a
merge bzr.dev, put the NEWS entry in the right place

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        kind_ch = '/'
26
26
    elif kind == 'symlink':
27
27
        kind_ch = '->'
 
28
    elif kind == 'file':
 
29
        kind_ch = ''
28
30
    else:
29
 
        assert kind == 'file', ("can't handle file of type %r" % kind)
30
 
        kind_ch = ''
 
31
        raise ValueError(kind)
31
32
 
32
 
    assert len(state) == 1
 
33
    if len(state) != 1:
 
34
        raise ValueError(state)
33
35
        
34
36
    if to_file is None:
35
37
        to_file = sys.stdout