/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/export/__init__.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-01 11:27:49 UTC
  • mfrom: (6331.2.1 export-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20111201112749-5b4e6ae2utuclht2
(jelmer) Always pass in the tree path to Tree methods when exporting.
 (Jelmer Vernooij)

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