summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/app.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-12 21:00:29 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-12 21:39:06 +0900
commitfece8cc81e8d8412e32c6667682a33e7d2f9dafe (patch)
treeaeed15fca8bd1a5ba3ffcc2b2238d106f61c5c02 /buildstream/_frontend/app.py
parent95d1dafc688fbc1a76cc50c2c60825d68f64f7c9 (diff)
downloadbuildstream-fece8cc81e8d8412e32c6667682a33e7d2f9dafe.tar.gz
_frontend/cli.py, _pipeline.py: Add options for cross junction tracking.
This patch makes cross junction tracking disabled by default, which was the initial intention when landing project.refs but never got around to doing this (intended to get addressing of junctioned elements via command line sorted first, but didnt happen). This adds the following options to enable cross-junction tracking: o bst build -J / --track-cross-junctions o bst fetch -J / --track-cross-junctions o bst track -J / --cross-junctions This also fixes `bst fetch --track` which had a bug, it was avoiding to track and fetch elements which are in a `cached` consistency state, which is wrong when `--track` is specified. This also updates some test cases which were broken by this change. This fixes issue #354
Diffstat (limited to 'buildstream/_frontend/app.py')
-rw-r--r--buildstream/_frontend/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_frontend/app.py b/buildstream/_frontend/app.py
index 2d5842c32..fa6a1b800 100644
--- a/buildstream/_frontend/app.py
+++ b/buildstream/_frontend/app.py
@@ -414,7 +414,7 @@ class App():
# If we're going to checkout, we need at least a fetch,
# if we were asked to track first, we're going to fetch anyway.
if not no_checkout or track_first:
- self.pipeline.fetch(self.scheduler, [target], track_first)
+ self.pipeline.fetch(self.scheduler, [target], track_first=track_first)
if not no_checkout and target._get_consistency() != Consistency.CACHED:
raise PipelineError("Could not stage uncached source. " +