~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-30 20:02:16 UTC
  • mto: This revision was merged to the branch mainline in revision 6333.
  • Revision ID: jelmer@samba.org-20111130200216-aoju21pdl20d1gkd
Consistently pass tree path when exporting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
    :param tree: A tree object.
196
196
    :param subdir: None or the path of an entry to start exporting from.
197
197
    :param skip_special: Whether to skip .bzr files.
 
198
    :return: iterator over tuples with final path, tree path and inventory
 
199
        entry for each entry to export
198
200
    """
199
201
    if subdir == '':
200
202
        subdir = None
221
223
        if not tree.has_filename(path):
222
224
            continue
223
225
 
224
 
        yield final_path, entry
 
226
        yield final_path, path, entry
225
227
 
226
228
 
227
229
register_lazy_exporter(None, [], 'bzrlib.export.dir_exporter',