0

i'm a total freshman in python, i have 2.7 version on my computer. I need to download latest revision from repository. My code is:

import pysvn 
svn_url = "https://..."
    client = pysvn.Client()

how should i login there? I could not find any information about it.

4

1 回答 1

0

通过定义一个回调函数给 SVN 客户端

def svn_login (realm, username, may_save):  
  return True, svn_login_name, svn_login_password, False

client = pysvn.Client ()  
client.callback_get_login = svn_login

检查:如何使用 PySVN 捕获登录失败?

于 2013-10-14T07:37:20.140 回答