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

Potential issue with svn co file:// with drive letters on Windows machines

From: Joshua Jensen <jjensen_at_workspacewhiz.com>
Date: 2002-05-25 09:32:20 CEST

I have a local test repository located at e:\svn\repos.

From a different drive, I try the following:


[S:\svntest2]svn co file:///e:/svn/repos

svn_error: #21097 : <Couldn't find a repository.>
  Unable to open an ra_local session to URL

svn_error: #21097 : <Couldn't find a repository.>
  svn_ra_local__split_URL: Unable to find valid repository


All variations yield similar results. If I do:

[E:\svntest2]svn co file:///svn/repos

The checkout is fine.

My solution was to open libsvn_ra_local/split_url.c and add the #ifdef

  /* Currently, the only hostnames we are allowing are the empty
     string and 'localhost' */
  if ((hostname != path) && (memcmp (hostname, "localhost", 9)))
    return svn_error_create
      (SVN_ERR_RA_ILLEGAL_URL, 0, NULL, pool,
       ("svn_ra_local__split_URL: URL contains unsupported hostname"));

#ifdef WIN32
#endif WIN32

I'm sure this isn't a complete solution, but it solves the drive letter
problem above. I actually think the command should be:

[S:\svntest2]svn co file://e:/svn/repos

with the removal of the third slash, because this more closely mirrors
web browser file:// support.

Joshua Jensen

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 25 09:34:12 2002

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.