You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by David Kramer <da...@thekramers.net> on 2005/03/07 16:07:38 UTC

Problem on Windows client- colon in file name?

I have a subversion repository (1.1.0 through svnserve, because I
didn't load apache 2.x yet) on my Linux server that appears to be working
fine for all operations when the client is Linux, and usually when the
client is Windows.

I'm running into troubles checking out one part of the tree, and I think
it's because the files in one particular directory are long names with
spaces, dashes, and colons.  When I try to check out that tree under
Linux, everything works fine.  When I try to check it out under Windows
using either svn 1.1.3 or TortoisSVN (I tried this on two different 
WIndows computers), I get the following error:

C:\DavidKramer\svncmdline\web>svn co svn://example.org/agilerules/web .
A  live
A  live\htdocs
A  live\htdocs\publications.phtml
A  live\htdocs\whyfollowagile.phtml
A  live\htdocs\mailinglists.phtml
A  live\htdocs\whatsnew.phtml
.
.
.
A  live\htdocs\articles\Embedded_Extreme_Programming_Experience_Report.ppt
A  live\htdocs\articles\Taming_Embedded_Tiger.pdf
A  live\htdocs\articles\Embedded_Extreme_Programming_Experience_Report.pdf
A  live\htdocs\agileattitudes
A  live\htdocs\agileattitudes\Vol 01 Issue 03: Design or Chaos
svn: Can't open file 'live/htdocs/agileattitudes/.svn/tmp/text-base/Vol 01 Issue
 08: Too Scared to Do The Right Thing: Offshoring and Agile Part 1 of 2.svn-base
': The parameter is incorrect.

I find several things curious about this.  That directory contains files 
like:
Vol 01 Issue 01: Your Software Process
Vol 01 Issue 02: Refactoring
Vol 01 Issue 03: Design or Chaos
Vol 01 Issue 04: Iteration
Vol 01 Issue 05: Communication
Vol 01 Issue 06: Agile Development Conference Report
Vol 01 Issue 07: An Insight and a Challenge
Vol 01 Issue 08: Too Scared to Do The Right Thing: Offshoring and Agile 
Part 1 of 2
Vol 01 Issue 09: Too Scared to Do The Right Thing: Offshoring and Agile 
Part 2 of 2
Vol 01 Issue 10: Unit Testing
Vol 01 Issue 11: Tear Down The Wall -- Do SQA First


The error refernces parts of two document names Vol 01 Issue 03:.... and 
Vol 01 Issue 08:....

If I look in the directory named in the error, I see:
C:\DavidKramer\svncmdline\webrec\live\htdocs\agileattitudes\.svn\tmp\text-base>dir
 Directory of 
C:\DavidKramer\svncmdline\webrec\live\htdocs\agileattitudes\.svn\tmp\text-base
03/07/2005  10:19a      <DIR>          .
03/07/2005  10:19a      <DIR>          ..
03/07/2005  10:19a                   0 Vol 01 Issue 03

So you see the filename stopped short of the first colon.  That's why I 
suspect the colon in the filename is the problem.

I am torn because I can't possibly be the first person to check in a 
filename with a colon and check it out under Windows, however I found no 
issues in the issue tracker with a description containing colon, and 
google didn't find anything either.  

Please advise.  Thank you for your time.

---------------------------------------------------------------------------
DDDD   This administration intends to be candid about its errors. For as a
DK KD  wise man once said, `An error does not become a mistake until you
DKK D  refuse to correct it.' . . . Without debate, without criticism, no
DK KD  administration and no country can succeed and no republic can
DDDD   survive."                              - John F. Kennedy (1917-1963)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem on Windows client- colon in file name?

Posted by David Kramer <da...@thekramers.net>.
On Mon, 7 Mar 2005, Ben Collins-Sussman wrote:

> 
> On Mar 7, 2005, at 10:07 AM, David Kramer wrote:
> 
> >
> > I am torn because I can't possibly be the first person to check in a
> > filename with a colon and check it out under Windows, however I found 
> > no
> > issues in the issue tracker with a description containing colon, and
> > google didn't find anything either.
> >
> 
> You are correct, you cannot use a colon in a filename on Windows.  It's 
> reserved as a drive separator (i.e. C:\)
> 
> This is not a Subversion bug, it's a Windows limitation.  There's 
> nothing Subversion can possibly do to circumvent the limitation.   So 
> the answer is:  "don't do that."  If you know that you're going to be 
> using Windows clients, then don't create paths in the repository that 
> are illegal on Windows.
> 
> You can rename the file using a server-side move:  "svn mv URL1 URL2".
> 

Already done, and it worked perfectly.  Thanks to the both of you.

---------------------------------------------------------------------------
DDDD   "It's also recommended that when you introduce a new cat into a 
DK KD  household, you spend a lot of time petting the old cats in the presence 
DKK D  of the new one, paying as much attention to them as you can.  This
DK KD  calms them down and helps them understand that they're not being 
DDDD   outsourced."                               - Joe Michael Straczynski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem on Windows client- colon in file name?

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 7, 2005, at 10:07 AM, David Kramer wrote:

>
> I am torn because I can't possibly be the first person to check in a
> filename with a colon and check it out under Windows, however I found 
> no
> issues in the issue tracker with a description containing colon, and
> google didn't find anything either.
>

You are correct, you cannot use a colon in a filename on Windows.  It's 
reserved as a drive separator (i.e. C:\)

This is not a Subversion bug, it's a Windows limitation.  There's 
nothing Subversion can possibly do to circumvent the limitation.   So 
the answer is:  "don't do that."  If you know that you're going to be 
using Windows clients, then don't create paths in the repository that 
are illegal on Windows.

You can rename the file using a server-side move:  "svn mv URL1 URL2".


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem on Windows client- colon in file name?

Posted by Brass Tilde <br...@insightbb.com>.
> I'm running into troubles checking out one part of the tree, and I think
> it's because the files in one particular directory are long names with
> spaces, dashes, and colons.

Windows *definitely* does not like colons in the file names, it has special
meaning to DOS and Windows file systems.  If you want that file to work on
Windows, you'll need to change that.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org