[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

pvsvn.client.log not giving path info!

From: Aditya Gandhi <agandhi_at_sapient.com>
Date: 2004-07-16 18:38:42 CEST

HI all,
I needed some help with pysvn
I am planning to use pysvn to query a svn repository and parse the log
output and generate some reports from it.

The problem I am facing is that when I use the pysvn.Client().log method
the data that is returned does not have any path info about the files.
Therefore I am not able to identify which log comment belongs to which
set of file\s.

Is this a bug in the pysvn version that I am using?
I am using pysvn-0.9.2-py22-svn1.0.5.exe which I had downloaded some
time back. The sample code that I am using is given below.

Looking forward to your help on this.

(P.S - On a side note.. where did the windows installers for pysvn go..
they do not seem to be in the file sharing section for the pysvn project
on tigris.com)

import pysvn
print("starting...")
client = pysvn.Client()
print("created client...")
print("getting logs...")
log_messages =
client.log("http://svn.collab.net/repos/pysvn/trunk/pysvn/Extension/")
for log_message in log_messages:
        print("***********************")
        print("Author: " + log_message.get("author"))
        print("Date: " + str(log_message.get("date")))
        print("Message: " + log_message.get("message"))
        revision = log_message.get("revision")
        print("Revision: " + str(revision.kind) + ", " +
str(revision.date) + ", " + str(revision.number))
        changed_paths = log_message.get("changed_paths")
        #####################################################
        ##### changed_paths is coming up as an empty list
        ###############################################3
        for path in changed_paths:
                print("Path: " + str(path))

                

Aditya Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Fri Jul 16 18:39:26 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.