summaryrefslogtreecommitdiff
path: root/buildstream/_frontend
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2018-06-29 18:28:48 +0100
committerJonathan Maw <jonathan.maw@codethink.co.uk>2018-07-16 17:12:08 +0100
commit4c6512d6f6e4defbddebab56a19e5e7f9e50c20c (patch)
tree857c4da0a5e8cc77355eaa54fdcc73aacf5146fb /buildstream/_frontend
parentddeac63acc607706a5b8ebf1f1a57b38427aa301 (diff)
downloadbuildstream-4c6512d6f6e4defbddebab56a19e5e7f9e50c20c.tar.gz
Only redirect elements for workspace and track operationsPRE_CAS_MERGE_JULY_2018
It was redirecting for checkout operations
Diffstat (limited to 'buildstream/_frontend')
-rw-r--r--buildstream/_frontend/cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index e59b1baec..c75e7ac6a 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -408,6 +408,10 @@ def track(app, elements, deps, except_, cross_junctions):
all: All dependencies of all specified elements
"""
with app.initialized(session_name="Track"):
+ # Substitute 'none' for 'redirect' so that element redirections
+ # will be done
+ if deps == 'none':
+ deps = 'redirect'
app.stream.track(elements,
selection=deps,
except_targets=except_,