You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Aditya Gandhi <ag...@sapient.com> on 2004/07/16 16:38:42 UTC

pvsvn.client.log not giving path info!

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 

Re: pvsvn.client.log not giving path info!

Posted by Barry Scott <ba...@barrys-emacs.org>.
Full answer is on pysvn user list. IN brief the paths are only returned 
if asked for in the log call.
The default is not to return them. Details are in the pysvn docs.

Barry


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