~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textinv.py

  • Committer: Aaron Bentley
  • Date: 2006-08-07 23:14:45 UTC
  • mto: (1731.1.39 nested-trees)
  • mto: This revision was merged to the branch mainline in revision 1910.
  • Revision ID: aaron.bentley@utoronto.ca-20060807231445-618a867437f6e82c
RemoveĀ is_root

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 inv.is_root(ie.file_id):
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 + ' ')