You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2002/03/28 20:54:03 UTC
dav probs
So here's a problem I'm seeing with ra_dav. Hopefully gstein can hand
me a clue about how to fix it.
* The repository-diff editor is trying to get the svn_node_kind
of a particular (revision, path) pair in the repository. It calls
RA->check_path() to do this. This function takes the (rev, path)
pair as input.
* ra_dav's implementation of this function is straightforward: it
tacks the path onto the ra-session's url, to get a new url.
then it passes the new url and revnum to get_baseline_info()
* get_baseline_info is being dumb. the very first thing it
does is call get_props_resource(), which calls get_props().
The "dumbness" here is that the revnum is being completely
ignored; the path may not exist at all in the head!
And in fact, that's exactly what I'm running into. get_baseline_info
is currently unable to get any information about a path unless it
exists in HEAD already. I get an instant 404 error.
My memory tells me that this topic has come up before. Gstein, is
there a Right Way for me to fix get_baseline_info?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: dav probs
Posted by Greg Stein <gs...@lyra.org>.
On Thu, Mar 28, 2002 at 02:54:03PM -0600, Ben Collins-Sussman wrote:
>...
> * ra_dav's implementation of this function is straightforward: it
> tacks the path onto the ra-session's url, to get a new url.
> then it passes the new url and revnum to get_baseline_info()
>
> * get_baseline_info is being dumb. the very first thing it
> does is call get_props_resource(), which calls get_props().
> The "dumbness" here is that the revnum is being completely
> ignored; the path may not exist at all in the head!
The revnum is initially ignored. It is a multistep process, and the revnum
comes into play later.
>...
> My memory tells me that this topic has come up before. Gstein, is
> there a Right Way for me to fix get_baseline_info?
See issue 581. You want to walk up the tree until you find something that
hasn't been deleted.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org