MCPcopy Create free account
hub / github.com/ARMmbed/mbed-cli / scm

Function scm

test/util.py:112–119  ·  view source on GitHub ↗
(dir=None)

Source from the content-addressed store, hash-verified

110 assert re.match(tree, result, re.MULTILINE)
111
112def scm(dir=None):
113 if not dir:
114 dir = os.getcwd()
115
116 if os.path.isdir(os.path.join(dir, '.git')):
117 return 'git'
118 elif os.path.isdir(os.path.join(dir, '.hg')):
119 return 'hg'
120
121def mkcommit(dir=None, files=[]):
122 with cd(dir or os.getcwd()):

Callers 3

test_sync_updateFunction · 0.70
mkcommitFunction · 0.70
testreposFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_sync_updateFunction · 0.56