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

Re: Fetched Revision from RA->get_file

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-05-26 10:32:54 CEST

On Thu, 26 May 2005, William Ferguson wrote:

> I'm using SVN 1.1.4 and I was just wondering whether it is expected that the
> fetchedRevision set during a call to svn_ra_plugin_t->get_file should always
> equate to the latest revisioon number from te Repository. I was expecting it
> to be set to the revision at which the resource was last updated.
>
>
Yes, that's the expected behaviour. In Subversion 1.2, there is a new
call: svn_ra_stat that will give you the created-rev of a directory entry.
In earlier versions, you can just use RA->get_dir() on the parent path and
find the entry for the child in the returned hash. Note that you need that
as a fallback even if you're using svn 1.2 client libs, since svn_ra_stat
doesn't work against an svnserve older than 1.2. (ra_dav works, though).

Hope this helps,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 26 10:25:43 2005

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