~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textinv.py

  • Committer: Robert Collins
  • Date: 2007-07-04 08:08:13 UTC
  • mfrom: (2572 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2587.
  • Revision ID: robertc@robertcollins.net-20070704080813-wzebx0r88fvwj5rq
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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 + ' ')