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

PATCH: BOOK: Windows drive letter in "file:" URL

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-08-29 18:39:43 CEST

Please could a Windows user check and confirm this (particularly the two examples in ch02.xml) for me.

I am not running Windows and cannot check it. I believe this is a better patch than the one attached to issue 1306 by Francois Beausoleil (Francois, do you agree?). I will commit it and close issue 1306 if someone confirms it.

Log:
[[[
Book: update the information on using a Windows drive letter in a "file:" URL.

* doc/book/book/appc.xml
  Replace the FAQ about working around the inability to specify a drive
  letter with one pointing to the section on how to do it.
* doc/book/book/ch02.xml
  Correct, update and explain the examples of using a drive letter in a URL.
]]]

- Julian

Book: update the information on using a Windows drive letter in a "file:" URL.

* doc/book/book/appc.xml
  Replace the FAQ about working around the inability to specify a drive
  letter with one pointing to the section on how to do it.
* doc/book/book/ch02.xml
  Correct, update and explain the examples of using a drive letter in a URL.

Index: doc/book/book/appc.xml
===================================================================
--- doc/book/book/appc.xml (revision 6917)
+++ doc/book/book/appc.xml (working copy)
@@ -171,26 +171,9 @@
 
 
         <sect3 id="svn-ap-c-sect-1.2.4">
- <title>I'm Running Subversion Under Windows and I Can Create
- a Repository Fine, but I Get Errors Trying to Import or
- Check Out from It.</title>
+ <title>How can I specify a Windows drive letter in a URL?</title>
 
- <para>If the error looks something like:</para>
-
- <screen>
-svn_error: #21085 :
- svn_ra_local__split_URL: Unable to find valid repository
- </screen>
-
- <para>Then the problem is that Subversion doesn't handle
- file URLs that have a drive specification. Try changing to
- that drive then doing an import without the drive spec. For
- example:</para>
-
- <screen>
-d:
-svn import e:\file\to\be\imported file:///some/path/to/repos/on/d/drive
- </screen>
+ <para>See <xref linkend="svn-ch-02-table-1"/>.</para>
         </sect3>
 
         <sect3 id="svn-ap-c-sect-1.2.5">
Index: doc/book/book/ch02.xml
===================================================================
--- doc/book/book/ch02.xml (revision 6917)
+++ doc/book/book/ch02.xml (working copy)
@@ -395,12 +395,18 @@
           resides:</para>
 
         <screen>
-$ svn checkout file:///X:/path/to/repos
+C:\> svn checkout file:///X:/path/to/repos
 &hellip;
-$ svn checkout file:///X|/path/to/repos
+C:\> svn checkout "file:///X|/path/to/repos"
 &hellip;
 </screen>
  
+ <para>In the second syntax, you need to quote the URL so that
+ the vertical bar character is not interpreted as a pipe.</para>
+
+ <para>Note that a URL uses ordinary slashes even though the native
+ (non-URL) form of a path on Windows uses backslashes.</para>
+
       </sidebar>
 
       <para>Suppose you make changes to <filename>button.c</filename>.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 29 18:39:59 2003

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.