I am new to Python and PySVN in general, and I am trying to export the SVN repository using pysvn. Here is my code:
def svn_credentials (realm, username, may_save):
return True, svn_login_name, svn_login_password, False
svn_client = pysvn.Client ()
svn_client.callback_get_login = svn_credentials
svn_client.export('server-path-goes-here', 'client-path-goes-here', force=True)
Which works fine, but if the password is incorrect or the username is unknown, this code just sits. I believe that he was presented with a user login invitation on the SVN side, but I don’t understand how to check what happens with callback_get_login. Any help would be greatly appreciated.
Geoff source
share