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

Re: [PATCH] possible improvement to svn log with "forward" revision range (issue 3830)

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Fri, 24 Jun 2011 09:41:32 -0400

On 06/23/2011 07:18 PM, Dirk Thomas wrote:
> Well, since issue 3931 was fixed today
> ('svn log' is returning log of unrelated path when peg revision is not
> related to operative revision)
> i revisited my patch for issue 3830.
> + /* try fetching ra_session again
> + * this time with modified revision argument.
> + * @todo modify already existing ra_session if possible? */
> + err = svn_client__ra_session_from_path(&ra_session, &ignored_revnum,
> + &actual_url, ra_target, NULL,
> + &peg_rev, &session_mod_rev,
> + ctx, pool);
> I don't know if it is possible to modify an already existing ra_session
> instead of opening a new for different revisions.
> If yes, please come up with an short description, so that performance would
> be improved.

An RA session isn't opened to a particular revision. It's opened to a URL
(called the session URL). That fact is masked by helper functions such as
the one in the context above, which accept a peg and an operation revision
as input, but it's true nonetheless. Anyway, once you have an RA session
opened, you can later point to it to a different session URL (within the
same repository) using svn_ra_reparent(). Under the hood, it's nothing more
than a change to some strings in the svn_ra_session_t object.

C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2011-06-24 15:42:19 CEST

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

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