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

Re: Handling of ra_local URL for UNC path

From: Kazutoshi Satoda <k_satoda_at_f2.dion.ne.jp>
Date: Tue, 25 Mar 2008 05:22:43 +0900

Stefan Küng wrote:
> Kazutoshi Satoda wrote:
>> "file:////server/folder" doesn't work because svn_path_canonicalize()
>> suppresses double slashes in a URI after the schema.
> But Subversion *requires* that each application calls
> svn_path_canonicalize() before passing a path to any API.

So, I understood that the form "file:////server/folder" doesn't
work by design.

> Which means the 'old' form is the *only* one that really works.

Not true. The new form "file://server/folder" also works. This form
is explicitly handled to work in svn_ra_local__split_URL() since
Subversion 1.2.

On the other hand, it looks hard to find why the old form
"file:///\server/folder" works as we have expected. I guess it lets
Subversion to access "/\server/folder" as an absolute path without
drive letter (for current drive), and eventually it is accepted as
an UNC path by Windows.

> What exactly do you want to change in TSVN? The path/URL handling works,
> you can use the 'new' format if you want (it works too).
> Where exactly do you want TSVN to change?

I want ...
  - repo-browser for a repository on "//server/folder" initially
    shows (and selects) the root of the repository, as same as it
    does for a repository on "C:/folder".
  - the browse [...] button at the side of the URL box opens
    repo-browser (instead of Browse for Folder dialog) for both
    "file:///\server/folder" and "file://server/folder".
  - repo-browser for a repository on "//server/folder" shows its
    URL as "file://server/folder".

Please see another mail I sent as the result of testing the nightly
r12406, for first two requests.

To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-03-24 21:22:50 CET

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

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