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

Re: file:/// access to fsfs repository

From: Patrick Smears <patrick.smears_at_ensoft.co.uk>
Date: 2004-09-30 12:35:29 CEST

On Thu, 30 Sep 2004, Simon Large wrote:

> Thanks to all who replied, but sorry to say that none of those methods
> worked. Yesterday I was using 'svn ls'. Today I am out of the office, so I
> asked a colleague to use TSVN's repository browser (he has no CLI
> installed), but the results should be the same.
>
> Any more bright ideas out there?

OK, I've had a chance to play around now. The following - though ugly! -
has been verified to work (for me, at least!) :

   svn co file:///%2f%3F/UNC/server/share/repos

This may require some explanation. As documented at:

  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/naming_a_file.asp

UNC paths can be accessed as \\?\UNC\<server>\<share>. I think the
libraries that subversion uses translate all "/"s to a "\"s; however they
also seem to remove excess "/"s at the start of the URL - so to prevent
that, the second "/" is written as "%2f". The "?" is written as "%3f"
since it is a special character in URLs (and subversion complains
otherwise).

(It may be possible to use similar tricks to get subversion to use a
"normal" UNC path - i.e. \\server\share rather than \\?\UNC\server\share -
but I haven't been able to do this and don't have enough time to play
around much longer :-)

Hope this helps,

Patrick

-- 
The easy way to type accents in Windows: http://www.frkeys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 30 12:36:04 2004

This is an archived mail posted to the Subversion Users mailing list.

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