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

Re: How to use get_log along with path kind {file,directory}?

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 20 Oct 2011 12:19:01 +0200

On Thu, Oct 20, 2011 at 09:01:52AM +0800, 罗勇刚(Yonggang Luo) wrote:
> I didn't received the reply, so I repost it, because I am just
> subscribe to this list. Btw, can you be more specified, I didn't found
> the place how get_log along with path kind.

I assume your quesiton is about the API, rather than the command
line client, correct?

See the definition of svn_log_changed_path2_t:
http://people.apache.org/~hwright/svn/doc/api/trunk/structsvn__log__changed__path2__t.html
That data structure has the node kind.

You can get it via svn_ra_get_log2():
http://people.apache.org/~hwright/svn/doc/api/trunk/svn__ra_8h.html#a366d8ab12ae02fcade47bcbda7078f0a
from the changed_paths2 member of the svn_log_entry_t argument
http://people.apache.org/~hwright/svn/doc/api/trunk/structsvn__log__entry__t.html
which is passed to the log receiver you have to implement to use
svn_ra_get_log2(): http://people.apache.org/~hwright/svn/doc/api/trunk/svn__types_8h.html#afb30054d6301afbcd8b00d8dc11d7ddb

Hope this helps.
Received on 2011-10-20 12:19:43 CEST

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.