Skip to content

Commit 8c18223

Browse files
authored
Merge pull request #197 from screamerbg/development
Update verbose level and catch merge errors during branch update
2 parents 04bbcc1 + b999b5e commit 8c18223

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ To list all *mbed CLI* commands use `mbed --help`. A detailed command-specific h
9797

9898
### Creating and importing programs
9999

100-
*mbed CLI* can create and import both mbed Classic and mbed OS based programs.
100+
*mbed CLI* can create and import both mbed 2.0 and mbed OS 4.0 based programs.
101101

102102
#### Creating a new program
103103

mbed/mbed.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
# Application version
38-
ver = '0.7.2'
38+
ver = '0.7.3'
3939

4040
# Default paths to Mercurial and Git
4141
hg_cmd = 'hg'
@@ -605,7 +605,10 @@ def update(rev=None, clean=False, is_local=False):
605605
remote = Git.getremote()
606606
branch = Git.getbranch()
607607
if remote and branch:
608-
Git.merge('%s/%s' % (remote, branch))
608+
try:
609+
Git.merge('%s/%s' % (remote, branch))
610+
except ProcessException:
611+
pass
609612
else:
610613
err = "Unable to update \"%s\" in \"%s\".\n" % (os.path.basename(os.getcwd()), os.getcwd())
611614
if not remote:
@@ -1898,7 +1901,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
18981901
popen(['python', os.path.join(tools_dir, 'get_config.py')]
18991902
+ ['-t', tchain, '-m', target]
19001903
+ list(chain.from_iterable(izip(repeat('--source'), source)))
1901-
+ (['-v'] if very_verbose else [])
1904+
+ (['-v'] if verbose else [])
19021905
+ (list(chain.from_iterable(izip(repeat('--prefix'), config_prefix))) if config_prefix else []),
19031906
env=env)
19041907
elif compile_library:
@@ -1912,7 +1915,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
19121915
+ (['-c'] if clean else [])
19131916
+ list(chain.from_iterable(izip(repeat('--source'), source)))
19141917
+ ['--build', build]
1915-
+ (['-v'] if very_verbose else [])
1918+
+ (['-v'] if verbose else [])
19161919
+ args,
19171920
env=env)
19181921
else:
@@ -1926,7 +1929,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
19261929
+ (['-c'] if clean else [])
19271930
+ list(chain.from_iterable(izip(repeat('--source'), source)))
19281931
+ ['--build', build]
1929-
+ (['-v'] if very_verbose else [])
1932+
+ (['-v'] if verbose else [])
19301933
+ args,
19311934
env=env)
19321935

@@ -1979,7 +1982,7 @@ def test_(toolchain=None, mcu=None, compile_list=False, run_list=False, compile_
19791982
if compile_list:
19801983
popen(['python', '-u', os.path.join(tools_dir, 'test.py'), '--list']
19811984
+ (['-n', tests_by_name] if tests_by_name else [])
1982-
+ (['-v'] if very_verbose else [])
1985+
+ (['-v'] if verbose else [])
19831986
+ args,
19841987
env=env)
19851988

@@ -1992,21 +1995,21 @@ def test_(toolchain=None, mcu=None, compile_list=False, run_list=False, compile_
19921995
+ ['--build', build]
19931996
+ ['--test-spec', test_spec]
19941997
+ (['-n', tests_by_name] if tests_by_name else [])
1995-
+ (['-v'] if very_verbose else [])
1998+
+ (['-v'] if verbose else [])
19961999
+ args,
19972000
env=env)
19982001

19992002
if run_list:
20002003
popen(['mbedgt', '--test-spec', test_spec, '--list']
20012004
+ (['-n', tests_by_name] if tests_by_name else [])
2002-
+ (['-V'] if very_verbose else [])
2005+
+ (['-V'] if verbose else [])
20032006
+ args,
20042007
env=env)
20052008

20062009
if run_only or build_and_run_tests:
20072010
popen(['mbedgt', '--test-spec', test_spec]
20082011
+ (['-n', tests_by_name] if tests_by_name else [])
2009-
+ (['-V'] if very_verbose else [])
2012+
+ (['-V'] if verbose else [])
20102013
+ args,
20112014
env=env)
20122015

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def read(fname):
1919
setup(
2020
name="mbed-cli",
2121
packages=["mbed"],
22-
version="0.7.2",
22+
version="0.7.3",
2323
url='http://github.com/ARMmbed/mbed-cli',
2424
author='ARM mbed',
2525
author_email='[email protected]',

0 commit comments

Comments
 (0)