56
56
When requesting a specific type of export, load the respective path.
58
def _loader(tree, dest, root, subdir):
58
def _loader(tree, dest, root, subdir, filtered):
59
59
mod = __import__(module, globals(), locals(), [funcname])
60
60
func = getattr(mod, funcname)
61
return func(tree, dest, root, subdir)
61
return func(tree, dest, root, subdir, filtered=filtered)
62
62
register_exporter(scheme, extensions, _loader)
65
def export(tree, dest, format=None, root=None, subdir=None):
65
def export(tree, dest, format=None, root=None, subdir=None, filtered=False):
66
66
"""Export the given Tree to the specific destination.
68
68
:param tree: A Tree (such as RevisionTree) to export