我有以下脚本用于从 svn 获取日志消息
import pysvn
class svncheck():
def __init__(self, svn_root="http://10.11.25.3/svn/Moodle/modules", svn_user=None, svn_password=None):
self.user = svn_user
self.password = svn_password
self.root = svn_root
def diffrence(self):
client = pysvn.Client()
client.commit_info_style = 1
client.callback_notify = self.notify
client.callback_get_login = self.credentials
log = client.log(
self.root,
revision_start=pysvn.Revision( pysvn.opt_revision_kind.number, 0),
revision_end=pysvn.Revision( pysvn.opt_revision_kind.number, 5829),
discover_changed_paths=True,
strict_node_history=True,
limit=0,
include_merged_revisions=False,
)
print log
def notify( event_dict ):
print event_dict
return
def credentials(realm, username, may_save):
return True, self.user, self.password, True
s = svncheck()
s.diffrence()
当我运行此脚本时,它返回一个空字典对象[<PysvnLog ''>, <PysvnLog ''>, <PysvnLog ''>,..
知道我在这里做错了什么吗?我正在使用 pysvn 1.7.2 版再次构建 svn 1.6.5 版欢呼纳什