-
Notifications
You must be signed in to change notification settings - Fork 179
Partner Workshop preparation #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ts. The return value is passed to scm.clone() which for Git uses --reference <cache_path> --dissociate. Add Repo.set_cache(url) routine which sets local cache based on pre-existing repo in Repo.path
Introduce Global class which allows global configuration.
Repo inherit cache value based from Program and Global
…to incompatibility with Git < 2.3
…ation. Now 'mbed import mbed-os' is equivalent of 'mbed import https://github.com/ARMmbed/mbed-os'
…escriptive help for 'mbed <command> -h/--help'
Merge `mbed default` and `mbed global` to `mbed config` and use `mbed config --global` syntax similar to git Move `mbed compile --tests` to `mbed test --compile`
…rs extensive output
Can we add a link to the testing tools in the testing section? Also I think we should call out a link to the config docs.
Proof reading - SamT
+1 LGTM |
Awesome work @screamerbg . I've successfully tried the caching for |
else: | ||
return False | ||
|
||
def init(path=None): | ||
popen([hg_cmd, 'init'] + ([path] if path else []) + (['-v'] if verbose else ['-q'])) | ||
|
||
def clone(url, name=None, depth=None, protocol=None): | ||
def clone(url, name=None, depth=None, protocol=None, cache=None): | ||
popen([hg_cmd, 'clone', formaturl(url, protocol), name] + (['-v'] if verbose else ['-q'])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use --mirror on the clone to a get mirror image of the upsream. Without this there will be situations in which the cache is incomplete. This implies --bare, but that makes sense any way in a cache copy.
This PR adds:
mbed config [--global] <var> [value]
. This allows setting global config likembed config [--global] protocol ssh
which can be overridden by program/local settings, e.g. `mbed config protocol https'. Currently supported configuration options: target, toolchain, protocol, depth, cachembed config --global cache <writable_path>
. Issue Should cache modules across apps #154mbed detect
(provided by mbed-ls). Issuembed ls
should call mbedls #133mbed compile -S|--supported
. Issuembed compile
andmbed export
should offer option to list available targets #132mbed new --help
Changes:
mbed test
mbed config
tombed compile --config
CC @jaustin @thegecko @janjongboom @sg- @bogdanm
Examples: