42
42
supports_use_existing = False
44
def __init__(self, tree, upstream_provider, larstiq=False,
44
def __init__(self, tree, upstream_provider, top_level=False,
45
45
use_existing=False, is_working_tree=False):
46
46
"""Create a SourceDistiller to distill from the specified tree.
48
48
:param tree: The tree to use as the source.
49
49
:param upstream_provider: an UpstreamProvider to provide the upstream
52
52
:param use_existing: whether the distiller should re-use an existing
53
53
target if the distiller supports it.
54
54
:param is_working_tree: if `tree` is a working tree.
57
57
self.upstream_provider = upstream_provider
59
59
self.use_existing = use_existing
60
60
if not self.supports_use_existing:
61
61
assert not self.use_existing, "distiller doesn't support use_existing"