~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/tar_exporter.py

  • Committer: Robert Collins
  • Date: 2006-07-24 04:40:06 UTC
  • mto: (1852.7.2 split-tree-source)
  • mto: This revision was merged to the branch mainline in revision 1890.
  • Revision ID: robertc@robertcollins.net-20060724044006-faa99aee0dff9ae9
Finish updating iter_entries change to make all tests pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    ball = tarfile.open(dest, 'w:' + compression)
38
38
    mutter('export version %r', tree)
39
39
    inv = tree.inventory
40
 
    for dp, ie in inv.iter_entries():
 
40
    entries = inv.iter_entries()
 
41
    entries.next() # skip root
 
42
    for dp, ie in entries:
41
43
        # .bzrignore has no meaning outside of a working tree
42
44
        # so do not export it
43
45
        if dp == ".bzrignore":