MCPcopy Create free account
hub / github.com/SOUI2/soui / svn_command

Function svn_command

third-part/jsoncpp/makerelease.py:54–65  ·  view source on GitHub ↗
(command, *args)

Source from the content-addressed store, hash-verified

52 pass
53
54def svn_command(command, *args):
55 cmd = ['svn', '--non-interactive', command] + list(args)
56 print('Running:', ' '.join(cmd))
57 process = subprocess.Popen(cmd,
58 stdout=subprocess.PIPE,
59 stderr=subprocess.STDOUT)
60 stdout = process.communicate()[0]
61 if process.returncode:
62 error = SVNError('SVN command failed:\n' + stdout)
63 error.returncode = process.returncode
64 raise error
65 return stdout
66
67def check_no_pending_commit():
68 """Checks that there is no pending commit in the sandbox."""

Callers 6

check_no_pending_commitFunction · 0.85
svn_check_if_tag_existFunction · 0.85
svn_commitFunction · 0.85
svn_tag_sandboxFunction · 0.85
svn_remove_tagFunction · 0.85
svn_exportFunction · 0.85

Calls 2

SVNErrorClass · 0.85
joinMethod · 0.45

Tested by

no test coverage detected