~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textinv.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-16 01:50:48 UTC
  • mfrom: (2078 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: john@arbash-meinel.com-20061016015048-0f22df07e38093da
[merge] bzr.dev 2078

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
 
    entries = inv.iter_entries()
56
 
    entries.next()
57
 
    for path, ie in entries:
 
55
    for path, ie in inv.iter_entries():
 
56
        if inv.is_root(ie.file_id):
 
57
            continue
 
58
        
58
59
        outf.write(ie.file_id + ' ')
59
60
        outf.write(escape(ie.name) + ' ')
60
61
        outf.write(ie.kind + ' ')