On Tue, Oct 13, 2009 at 6:27 PM, C. Michael Pilato <cmpilato_at_collab.net> wrote:
> Ivan Zhakov wrote:
>> Hi,
>>
>> Could you please someone explain me what's the purpose of session
>> relative path in Subversion RA API?
>
> The history is deep here, but it probably boils down to the fact that
> passing relative paths thru the RA API simplified interaction with the
> client and working copy logic which also tended to deal with relative paths
> while crawling around, and with the editor API which accepts paths relative
> to the root of the edit. Also, back in the day, the client/WC layers didn't
> know the repository root URL, so calculating a repository abspath would have
> required round-tripping the server.
>
Currently all RA providers reveals repository root on connect and
store it session baton. So it's really cheap to get it for client/WC
layers. Just to clarify: I suggest to keep opening RA session by any
URL in repository, but switch other API.
Using full URLs like protocol://server/repo/path instead of session
relative path will be ideal solution. Another way is support both full
URLs and repository relative paths.
--
Ivan Zhakov
VisualSVN Team
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2407122
Received on 2009-10-13 23:48:00 CEST