我有以下腳本,我使用當我運行此腳本它返回一個空的字典對象[<PysvnLog ''>, <PysvnLog ''>, <PysvnLog ''>,..
pysvn client.log()返回空的字典
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()
日誌消息
任何想法我在這裏做錯了嗎? 我使用內置再次SVN版本1.6.5 歡呼 納什
pysvn版本1.7.2