~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textinv.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-08 00:24:38 UTC
  • mfrom: (1907.1.9 no-special-root)
  • Revision ID: pqm@pqm.ubuntu.com-20060808002438-4b8baf2d9282e154
Represent root entries using InventoryDirectory, not RootEntry

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
def write_text_inventory(inv, outf):
53
53
    """Write out inv in a simple trad-unix text format."""
54
54
    outf.write(START_MARK)
55
 
    for path, ie in inv.iter_entries():
56
 
        if ie.kind == 'root_directory':
57
 
            continue
58
 
        
 
55
    entries = inv.iter_entries()
 
56
    entries.next()
 
57
    for path, ie in entries:
59
58
        outf.write(ie.file_id + ' ')
60
59
        outf.write(escape(ie.name) + ' ')
61
60
        outf.write(ie.kind + ' ')