[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 13:09:41 +0200

On Thu, Oct 20, 2011 at 06:57:47PM +0800, 罗勇刚(Yonggang Luo) wrote:
> 在 2011年10月20日星期四,Stefan Sperling 写道:
> > Only 1.6 and better support svn_log_changed_path2_t.
> > Older servers will return svn_log_changed_path_t, which doesn't
> > have the node kind:
> >
> > http://people.apache.org/~hwright/svn/doc/api/trunk/structsvn__log__changed__path__t.html
>
> So that's totally depending on the server, on more question, is that means
> properties modified and text modified only support by server newer than or
> just be subversion server 1.7?

Yes.

With older servers, you can try to list the node to get its kind.
See these links:
http://people.apache.org/~hwright/svn/doc/api/trunk/structsvn__dirent__t.html
http://people.apache.org/~hwright/svn/doc/api/trunk/group__List.html#ga3ac4238fdc4d135798fdcce31bff829a
http://people.apache.org/~hwright/svn/doc/api/trunk/group__List.html#gad34331c2f22f8b5ee906c4abff0866d0

> If the server restricted me to get the kind, what's the fastest way to fetch
> it in other way?

No. The whole point of authorization is to prevent unauthorized
clients from getting this information. If you can work around it
you have found a security hole.
Received on 2011-10-20 13:10:22 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.