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

File URLs truncated on Windows with mapped and SUBST drives

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 27 Aug 2013 20:43:46 -0400

This was originally reported on the TSVN Users list but I've
reproduced it with the command line client. Original thread:
http://svn.haxx.se/tsvnusers/archive-2013-08/0227.shtml

Jason Dunaway is using a mapped network drive for his repository, but
I reproduced the behavior with a drive letter created with SUBST.

We're both using SVN 1.8.1. He's on XP (pretty sure), I'm on Windows 7
Pro 64-bit.

Steps to reproduce:

>svnadmin create r:\Appraisal
>subst X:\ R:\Appraisal
>svn co file:///X:/ r:/tmp6

Everything to this point is successful.

>svn mkdir file:///X:/Appraisal -m "test"
Committed revision 1.

>md r:\tmp7

    Directory: R:\

Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 08/27/2013 10:22 tmp7

>svn co file:///X:/Appraisal r:\tmp7
>svn: E160005: Target path '/ppraisal' does not exist

Note that the A in Appraisal has been chopped off. Thinking that it
might be just that one letter, I tried a different one.

>svn mkdir file:///X:/TryAgain -m "test"
Committed revision 2.

>svn co file:///X:/TryAgain r:\tmp8
svn: E160005: Target path '/ryAgain' does not exist

Same result. The T has been lopped off.

If I use the real path to the repository (not the SUBST drive letter),
it's successful:

>svn co file:///R:/Appraisal/TryAgain r:\tmp9
Checked out revision 2.

Jason was successful when using the full UNC path instead of the
mapped drive letter, which is consistent with my results with the
SUBST vs. real paths.
Received on 2013-08-28 02:44:59 CEST

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