~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Export trees to tarballs, non-controlled directories, zipfiles, etc.
18
18
"""
19
19
 
 
20
from __future__ import absolute_import
 
21
 
20
22
import os
21
23
import time
22
24
import warnings
195
197
    :param tree: A tree object.
196
198
    :param subdir: None or the path of an entry to start exporting from.
197
199
    :param skip_special: Whether to skip .bzr files.
 
200
    :return: iterator over tuples with final path, tree path and inventory
 
201
        entry for each entry to export
198
202
    """
199
203
    if subdir == '':
200
204
        subdir = None
221
225
        if not tree.has_filename(path):
222
226
            continue
223
227
 
224
 
        yield final_path, entry
 
228
        yield final_path, path, entry
225
229
 
226
230
 
227
231
register_lazy_exporter(None, [], 'bzrlib.export.dir_exporter',