Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-os
Diff: neo.py
- Revision:
- 41:59e9d808ee05
- Parent:
- 40:2446665dfdf8
- Child:
- 42:58b35941ebd0
--- a/neo.py Wed Mar 30 15:31:17 2016 -0500 +++ b/neo.py Wed Mar 30 15:34:56 2016 -0500 @@ -85,6 +85,8 @@ @scm('hg') @staticclass class Hg(object): + exclude = '.hg/exclude' + def clone(url, name=None, hash=None): popen(['hg', 'clone', url, name] + (['-u', hash] if hash else [])) @@ -108,6 +110,8 @@ @scm('git') @staticclass class Git(object): + exclude = '.git/info/exclude' + def clone(url, name=None, hash=None): popen(['git', 'clone', url, name]) if hash: @@ -366,10 +370,16 @@ repo = Repo.fromrepo() + macros = [] + if os.path.isfile('MACROS.txt'): + with open('MACROS.txt') as f: + macros = f.read().splitlines() + env = os.environ.copy() env['PYTHONPATH'] = '.' popen(['python', 'mbed-os/tools/project.py', '--source=%s' % repo.path] + + list(chain.from_iterable(izip(repeat('-D'), macros))) + args, env=env)