~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textui.py

  • Committer: Robert Collins
  • Date: 2005-10-23 15:11:26 UTC
  • Revision ID: robertc@robertcollins.net-20051023151126-c18d3642d09a27ba
'revision.revision_graph can handle having only partial history.

Previously, it would fail for a graph with no revision with no parents.
(Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    if kind == 'directory':
22
22
        # use this even on windows?
23
23
        kind_ch = '/'
 
24
    elif kind == 'symlink':
 
25
        kind_ch = '->'
24
26
    else:
25
 
        assert kind == 'file'
 
27
        assert kind == 'file', ("can't handle file of type %r" % kind)
26
28
        kind_ch = ''
27
29
 
28
30
    assert len(state) == 1