You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Cory Trese <co...@gmail.com> on 2007/09/27 20:00:04 UTC

Can Long File Names Crash SVN.exe?

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/
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
www:  http://www.corytrese.com/

Re: Can Long File Names Crash SVN.exe?

Posted by Eric Hanchrow <of...@blarg.net>.
>>>>> "C" == C Michael Pilato <cm...@collab.net> writes:

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

Ooh, thanks; I think I've run across this problem before, and had no
idea what to do about it.

-- 
The one thing that unites all human beings, regardless of age,
gender, religion, economic status or ethnic background, is that
deep down inside, we all believe that we are above average
drivers.
         -- Dave Barry

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

Re: Can Long File Names Crash SVN.exe?

Posted by "C. Michael Pilato" <cm...@collab.net>.
Eric Hanchrow wrote:
>>>>>> "C" == C Michael Pilato <cm...@collab.net> writes:
> 
>     C> (Or, you can read the commit diff:
>     C> http://svn.collab.net/viewvc/svn/trunk/www/faq.html?r1=26015&r2=26830)
> 
> Geez, you write prose well!  Thanks.
> 
> And now a quibble:
> 
> You say 
> 
>     Because TortoiseSVN runs as a Windows GUI application, it doesn't
>     really have a concept of a "current working directory" like a
>     command-line program does.
> 
> I don't think that's true -- _all_ processes have a current working
> directory -- and I also suspect it's irrelevant; I think all that
> matters is that (for whatever reason) TortoiseSVN always deals in
> absolute paths.

Yeah, that's true.  I've removed that statement and replaced it with what I
was actually trying to say (but was too lazy to type out before).  Thanks
for the review.

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


Re: Can Long File Names Crash SVN.exe?

Posted by Eric Hanchrow <of...@blarg.net>.
>>>>> "C" == C Michael Pilato <cm...@collab.net> writes:

    C> (Or, you can read the commit diff:
    C> http://svn.collab.net/viewvc/svn/trunk/www/faq.html?r1=26015&r2=26830)

Geez, you write prose well!  Thanks.

And now a quibble:

You say 

    Because TortoiseSVN runs as a Windows GUI application, it doesn't
    really have a concept of a "current working directory" like a
    command-line program does.

I don't think that's true -- _all_ processes have a current working
directory -- and I also suspect it's irrelevant; I think all that
matters is that (for whatever reason) TortoiseSVN always deals in
absolute paths.

-- 
[Dijkstra's] great strength is that he is uncompromising.  It
would make him physically ill to think of programming in C++.
        -- Donald E. Knuth

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

Re: Can Long File Names Crash SVN.exe?

Posted by Cory Trese <co...@gmail.com>.
Michael,

This information was very helpful and corrects my problem using svn.exe at
the command line.

I also think that future users will appreciate the notes about T-SVN, which
was our previous solution (invoking T-SVN via the command line.)

- Cory Trese

On 9/28/07, C. Michael Pilato <cm...@collab.net> wrote:
>
> C. Michael Pilato wrote:
> > 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.
>
> FAQ added.  Can you verify that it would have been helpful to you, Cory?
>
> It may take a while for it show up on the live server, but when it does,
> it
> will live at http://subversion.tigris.org/faq.html#long-paths.
>
> (Or, you can read the commit diff:
> http://svn.collab.net/viewvc/svn/trunk/www/faq.html?r1=26015&r2=26830)
>
> Thanks.
>
> --
> C. Michael Pilato <cm...@collab.net>
> CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
>
>
>


-- 
Cory Trese
ph#:     937-609-9644
e-m:    cory.trese@gmail.com
www:  http://www.corytrese.com/

Re: Can Long File Names Crash SVN.exe?

Posted by "C. Michael Pilato" <cm...@collab.net>.
C. Michael Pilato wrote:
> 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.

FAQ added.  Can you verify that it would have been helpful to you, Cory?

It may take a while for it show up on the live server, but when it does, it
will live at http://subversion.tigris.org/faq.html#long-paths.

(Or, you can read the commit diff:
http://svn.collab.net/viewvc/svn/trunk/www/faq.html?r1=26015&r2=26830)

Thanks.

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


Re: Can Long File Names Crash SVN.exe?

Posted by "C. Michael Pilato" <cm...@collab.net>.
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
> <ma...@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 <ma...@gmail.com>
>     <mailto:cory.trese@gmail.com <ma...@gmail.com>>
>     > www:   http://www.corytrese.com/ <http://www.corytrese.com/>
>     >
> 
> 
>     --
>     C. Michael Pilato <cmpilato@collab.net <ma...@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 <ma...@gmail.com>
> www:  http://www.corytrese.com/


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


Re: Can Long File Names Crash SVN.exe?

Posted by Cory Trese <co...@gmail.com>.
Michael,

That works perfectly.  I am almost embarrassed I did not think of it :)

- Cory

On 9/28/07, C. Michael Pilato <cm...@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 <ma...@gmail.com>
> > www:  http://www.corytrese.com/ <http://www.corytrese.com/>
> >
>
>
> --
> C. Michael Pilato <cm...@collab.net>
> CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
>
>
>


-- 
Cory Trese
ph#:     937-609-9644
e-m:    cory.trese@gmail.com
www:  http://www.corytrese.com/

Re: Can Long File Names Crash SVN.exe?

Posted by "C. Michael Pilato" <cm...@collab.net>.
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 <ma...@gmail.com>
> www:  http://www.corytrese.com/ <http://www.corytrese.com/>
> 


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