/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/dir_exporter.py

Fixed compatibility issues with directory exporter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    )
28
28
 
29
29
 
30
 
def dir_exporter(tree, dest, root, subdir=None, filtered=False, force_mtime=None, per_file_timestamps=False, fileobj=None):
 
30
def dir_exporter_generator(tree, dest, root, subdir=None, filtered=False, 
 
31
                           force_mtime=None, fileobj=None):
31
32
    """Return a generator that exports this tree to a new directory.
32
33
 
33
34
    `dest` should either not exist or should be empty. If it does not exist it
98
99
        os.utime(fullpath, (mtime, mtime))
99
100
 
100
101
        yield
 
102
        
 
103
def dir_exporter(tree, dest, root, subdir=None, filtered=False, 
 
104
                 force_mtime=None, fileobj=None):
 
105
 
 
106
    for _ in dir_exporter_generator(tree, dest, root, subdir, filtered,
 
107
                                    force_mtime, fileobj):
 
108
        pass
 
 
b'\\ No newline at end of file'