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

Re: code to check if ra_replay is supported

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-08-24 17:52:32 CEST

On 8/24/06, David Glasser <glasser@mit.edu> wrote:
> For SVN::Mirror we'll need to check if the server supports ra_replay,
> and fallback to its current mirror mode if not. I think the following
> should work for determining if a server supports ra_replay; it tries
> to replay r0 and sets a boolean based on whether or not this throws an
> "unsupported" error (and rethrows other errors).
>
> Sanity-checking would be appreciated (Garrett?). And does anyone
> think this code should be put somewhere in the repo?

That's pretty much what I'd do, although I'd probably just try to sync
the revision in question, then catch the unsupported error and do it
the other way in that case. Seems better than trying to do a no-op
replay.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 24 17:53:49 2006

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.