MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / check_no_pending_commit

Function check_no_pending_commit

edrav2/eprj/jsoncpp/makerelease.py:67–79  ·  view source on GitHub ↗

Checks that there is no pending commit in the sandbox.

()

Source from the content-addressed store, hash-verified

65 return stdout
66
67def check_no_pending_commit():
68 """Checks that there is no pending commit in the sandbox."""
69 stdout = svn_command('status', '--xml')
70 etree = ElementTree.fromstring(stdout)
71 msg = []
72 for entry in etree.getiterator('entry'):
73 path = entry.get('path')
74 status = entry.find('wc-status').get('item')
75 if status != 'unversioned' and path != 'version':
76 msg.append('File "%s" has pending change (status="%s")' % (path, status))
77 if msg:
78 msg.insert(0, 'Pending change to commit found in sandbox. Commit them first!')
79 return '\n'.join(msg)
80
81def svn_join_url(base_url, suffix):
82 if not base_url.endswith('/'):

Callers 1

mainFunction · 0.85

Calls 6

svn_commandFunction · 0.85
getMethod · 0.45
findMethod · 0.45
appendMethod · 0.45
insertMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected