'Execute a subversion command, and return output. If check_rc is False, returns the return code instead of the output.'

def _exec(self, args, check_rc=True):

    bits = [self.svn_path, '--non-interactive', '--trust-server-cert', '--no-auth-cache']
    if self.username:
        bits.extend(['--username', self.username])
    if self.password:
        bits.extend(['--password', self.password])
    bits.extend(args)
    (rc, out, err) = self.module.run_command(bits, check_rc)
    if check_rc:
        return out.splitlines()
    else:
        return rc
