~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/__init__.py

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

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',