/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 bzrlib/textui.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-23 03:09:50 UTC
  • Revision ID: mbp@sourcefrog.net-20050323030950-c762f4c38f99dbd9
Prepare for smart recursive add.

- New Inventory.add_path, so that callers don't need to know so much
  about path lookup.

- Make gen_file_id public.

- New add module and smart_add function; does previous add operations
  more cleanly but not recursive mode yet.

- New warning() function.

Show diffs side-by-side

added added

removed removed

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