Skip to content
Snippets Groups Projects

WIP: Add explicit `--fetch` flag to bst commands

Closed Gökçen Nurlu requested to merge gokcen/no_auto_fetch into master
2 files
+ 9
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -395,8 +395,10 @@ def fetch(app, elements, deps, track_, except_, track_cross_junctions):
help="Allow crossing junction boundaries")
@click.argument('elements', nargs=-1,
type=click.Path(readable=False))
@click.option('--fetch', 'fetch_', default=False, is_flag=True,
help="Enable auto-fetching of junction(s) automatically if elements has dependencies")
@click.pass_obj
def track(app, elements, deps, except_, cross_junctions):
def track(app, elements, deps, except_, cross_junctions, fetch_):
"""Consults the specified tracking branches for new versions available
to build and updates the project with any newly available references.
@@ -417,7 +419,8 @@ def track(app, elements, deps, except_, cross_junctions):
app.stream.track(elements,
selection=deps,
except_targets=except_,
cross_junctions=cross_junctions)
cross_junctions=cross_junctions,
fetch_subprojects=fetch_)
##################################################################
Loading