~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/dir_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:
36
36
    os.mkdir(dest)
37
37
    mutter('export version %r', tree)
38
38
    inv = tree.inventory
39
 
    for dp, ie in inv.iter_entries():
 
39
    entries = inv.iter_entries()
 
40
    entries.next() # skip root
 
41
    for dp, ie in entries:
40
42
        # .bzrignore has no meaning outside of a working tree
41
43
        # so do not export it
42
44
        if dp == ".bzrignore":