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

Re: Can Long File Names Crash SVN.exe?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2007-09-28 16:43:45 CEST

No need to be embarrassed. The reason that it works is due to a somewhat
confusing (and certainly annoying) Windows API-ism.

I've had to answer this question too many times, though. I'll be adding a
FAQ entry for it today.

Cory Trese wrote:
> Michael,
>
> That works perfectly. I am almost embarrassed I did not think of it :)
>
> - Cory
>
> On 9/28/07, *C. Michael Pilato* < cmpilato@collab.net
> <mailto:cmpilato@collab.net>> wrote:
>
> Cory, try running your update with an absolute path to the target. So,
> instead of:
>
> C> cd path\to\workingcopy
> C> svn up
>
> do:
>
> C> svn up C:\path\to\workingcopy
>
> And see if that helps.
>
>
> Cory Trese wrote:
> > I am having some problems with SVN.exe
> >
> > My error message is coming from "svn up" against a working copy:
> >
> > A Services\SMW
> >
> BizTalk\Smartworks.BizTalk.RxPad.GetLicenseProfile\WebService\Smartworks.BizTalk.RxPad.GetLicenseProfile\Web.config
>
> >
> > svn: Your .svn/tmp directory may be missing or corrupt; run 'svn
> > cleanup' and try again
> > svn: Can't open file 'Services\SMW
> >
> BizTalk\Smartworks.BizTalk.RxPad.GetLicenseProfile\WebService\Smartworks.BizTalk.RxPad.GetLicenseProfile\
>
> >
> >
> _svn\tmp\text-base\WebService_Smartworks_BizTalk_RxPad_GetLicenseProfile.asmx.svn-base':
> > The system cannot find the path specified.
> >
> > I appears that the string "Services\SMW
> >
> BizTalk\Smartworks.BizTalk.RxPad.GetLicenseProfile\WebService\Smartworks.BizTalk.RxPad.GetLicenseProfile\Web.config"
> > is ok, but "Services\SMW
> >
> BizTalk\Smartworks.BizTalk.RxPad.GetLicenseProfile\WebService\Smartworks.BizTalk.RxPad.GetLicenseProfile\"
>
> > pushes it beyond the limit and it fails.
> >
> > At first I thought perhaps I was exhausting the available path
> > characters in Windows, but the Microsoft FS documentation for the OS
> > (see below for OS information) as well as my tests creating the file
> > that SVN.exe is complaining on seem to point towards an SVN client
> > defect. I am able to create and read/write the file using a C# test
> > application without error.
> >
> > Subversion Information:
> > E:\CruiseControlSVN\smw_code\trunk\SMARTworks6\SW6\Smartworks\App>svn
> > --version
> > svn, version 1.4.5 (r25188)
> > compiled Aug 22 2007, 20:49:04
> >
> > Copyright (C) 2000-2006 CollabNet.
> > Subversion is open source software, see http://subversion.tigris.org/
> > <http://subversion.tigris.org/>
> > This product includes software developed by CollabNet
> > (http://www.Collab.Net/).
> >
> >
> > System Information:
> > OS Name: Microsoft(R) Windows(R) Server 2003,
> Standard
> > Edition
> > OS Version: 5.2.3790 Service Pack 1 Build 3790
> > OS Manufacturer: Microsoft Corporation
> > OS Configuration: Member Server
> > OS Build Type: Multiprocessor Free
> > Registered Owner: SRC
> > Registered Organization: SRC
> > Product ID: 69712-640-1771714-45960
> > Original Install Date: 1/5/2006, 2:42:42 PM
> >
> > Environment:
> > PROCESSOR_ARCHITECTURE=x86
> > PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 9, GenuineIntel
> > PROCESSOR_LEVEL=15
> > PROCESSOR_REVISION=0409
> > ProgramFiles=C:\Program Files
> > PROMPT=$P$G
> > SESSIONNAME=RDP-Tcp#12
> > SVN_ASP_DOT_NET_HACK=1
> > SystemDrive=C:
> > SystemRoot=C:\WINDOWS
> > TEMP=C:\DOCUME~1\ctrese\LOCALS~1\Temp\4
> > TMP=C:\DOCUME~1\ctrese\LOCALS~1\Temp\4
> >
> >
> > --
> > Cory Trese
> > ph#: 937-609-9644
> > e-m: cory.trese@gmail.com <mailto:cory.trese@gmail.com>
> <mailto:cory.trese@gmail.com <mailto:cory.trese@gmail.com>>
> > www: http://www.corytrese.com/ <http://www.corytrese.com/>
> >
>
>
> --
> C. Michael Pilato <cmpilato@collab.net <mailto:cmpilato@collab.net>>
> CollabNet <> www.collab.net <http://www.collab.net> <>
> Distributed Development On Demand
>
>
>
>
>
> --
> Cory Trese
> ph#: 937-609-9644
> e-m: cory.trese@gmail.com <mailto:cory.trese@gmail.com>
> www: http://www.corytrese.com/

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Fri Sep 28 16:43:56 2007

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.