Skip to content

Instantly share code, notes, and snippets.

@gabber12
Created April 8, 2015 22:21
Show Gist options
  • Save gabber12/826f7eea5efd56975090 to your computer and use it in GitHub Desktop.
Save gabber12/826f7eea5efd56975090 to your computer and use it in GitHub Desktop.
Pysvn setup
import pysvn
def get_login( realm, username, may_save ):
svn_username = settings.SVN_USERNAME
svn_password = settings.SVN_PASSWORD
return True, svn_username, svn_password, True
def ssl_server_trust_prompt(trust_dict):
return True, 5, True
def get_log_message():
return True,"For issue"
client = pysvn.Client()
client.callback_get_login = get_login
client.callback_ssl_server_trust_prompt = ssl_server_trust_prompt
client.callback_get_log_message = get_log_message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment