I have the following script that I am using to get the log message from svn
import pysvn class svncheck (): def __init __ (auto, 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): customer = 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_chan Ged_paths = true, strict_node_history = true, range = 0, include_merged_revisions = false,) print log def notify (event_dict): print event_dict retire n def credentials (realm, user name, may_save): back true, self Users, themselves Password, true s = svncheck () s.diffrence ()
When I run this script, an empty dictionary object is [returning; PysvnLog '' & gt;, & lt; PysvnLog '' & gt;, & lt; PysvnLog '' & gt ;, ..
Any ideas what's wrong with me here? I am using pysvn version 1.7.2 again svn version 1.6.5 cheers nash
pysvn The .client log method gives a list of log entries; Each log entry is a dictionary (see)
You can print the log messages in your code like this:
For log information: print info Revision.number, print info.author, print time .ctime (info.date), print information. Message
Comments
Post a Comment