You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by dj...@wadja.com on 2008/11/13 10:12:35 UTC
A little question about SVN
Hi, I have a question about SVN, what's the maximum size of name file
please. Thank a lot Best regards,
Sent by djilali31@wadja.com | http://wadja.com/djilali31
Click here <http://wadja.com/signup/default.aspx?join=72237328407301>
to connect with djilali on Wadja
Re: A little question about SVN
Posted by Andy Levy <an...@gmail.com>.
On Fri, Nov 14, 2008 at 04:57, Engebakken Geir <ge...@edb.com> wrote:
> I managed to create this path in Vista, which is 250 chars long :
>
> C:/tmp/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/lon
> /long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long
> /long
ISTR that there are a couple APIs for working with paths, which have
different limitations on them. APR (and thus SVN) uses one,
Explorer/command-line may use the other.
> -----Original Message-----
> From: David Weintraub [mailto:qazwart@gmail.com]
> Sent: 14. november 2008 02:29
> To: djilali31@wadja.com
> Cc: users@subversion.tigris.org
> Subject: Re: A little question about SVN
>
> This is really up to the file system your Subversion server is running on. On Windows, the longest name is somewhere around 158 characters (including directory names and directory separators). On *MOST* Unix/Linux systems, I believe it is somewhere in the neighborhood of 32K.
>
> --
> David Weintraub
> qazwart@gmail.com
>
>
>
> On Thu, Nov 13, 2008 at 5:12 AM, <dj...@wadja.com> wrote:
>> Hi, I have a question about SVN, what's the maximum size of name file
>> please. Thank a lot Best regards,
>>
>> Sent by djilali31@wadja.com | http://wadja.com/djilali31 Click here to
>> connect with djilali on Wadja
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Re: A little question about SVN
Posted by David Weintraub <qa...@gmail.com>.
On Mon, Nov 17, 2008 at 4:42 PM, Erik Huelsmann <eh...@gmail.com> wrote:
>> Surprisingly, the Subversion command line commands cannot get around
>> this limit. Again, I am not sure it is the fact that the Subversion
>> command line commands are using the standard directory API that hits
>> this limit, or because they are operating in the command line
>> environment where this limit exists.
>
> Yes, it can and *does* use the same APIs as does TSVN, because they
> both use APR, but: if APR is built on top of cygwin, it may be a
> cygwin limitation to actually limit files to 250 characters.
>
> As I said before, try to use an absolute path (with the windows native
> binaries) and you should see paths much longer than 250.
Actually, this was in the Windows command shell and not Cygwin. I
don't know if I made that clear. The same is true for my attempt to
run svnadmin create. That was also in the Windows command shell. These
commands simply wouldn't run.
I've always found this behavior in Windows rather strange. In fact,
even Microsoft people don't even know about this behavior. They keep
claiming Windows and NTFS can handle file paths in the 32K range. That
may be true, but almost all Windows programs have this limit. This
isn't just third party applications that simply are too lazy to do
otherwise. This includes Windows Explorer (which you'd think would use
the new API), VisualStudio, and MS-Office.
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Re: A little question about SVN
Posted by Erik Huelsmann <eh...@gmail.com>.
> Surprisingly, the Subversion command line commands cannot get around
> this limit. Again, I am not sure it is the fact that the Subversion
> command line commands are using the standard directory API that hits
> this limit, or because they are operating in the command line
> environment where this limit exists.
Yes, it can and *does* use the same APIs as does TSVN, because they
both use APR, but: if APR is built on top of cygwin, it may be a
cygwin limitation to actually limit files to 250 characters.
As I said before, try to use an absolute path (with the windows native
binaries) and you should see paths much longer than 250.
> I also notice that Cygwin also hits the same limits which is
> surprising since it really doesn't use the Windows shell.
No, but it uses a Unix emulation library... We don't know what the
emulation glue does for us (or does not do for us...)
Bye,
Erik.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Re: A little question about SVN
Posted by David Weintraub <qa...@gmail.com>.
Okay, here's the test on my Windows XP machine:
I used Cygwin to write a little shell script to generate a long path:
cd /cygdrive/c
count=0
while true
do
mkdir abcdefghi || break
cd abcdefghi || break
((count=$count+1))
print "Count = $count"
done
This counted out to 24 before crashing. So, it created a path of 244
long and could not add another ten characters to the path. This seems
to match the 250 or so character limit.
I then used the DOS subst command to create a mapped "s:" drive on
this extra long path. You can get around this limit by mapping an
extra long directory name using the subst command in Windows DOS mode.
Using TortoiseSVN to do my checkout worked. It actually checked out
the entire module structure despite the fact that doing so would over
run the 250+ character limit. I was unable to browse the checked out
working directory in Explorer or the command line unless I accessed it
from the "S:" drive mapped to this directory.
Using the svn command from the command line failed though. Instead, I
got a "svn: Can't create directory 'arm\.svn': The filename or
extension is too long." error when attempting it.
I then created a Subversion server on Windows in this long path. The
svnadmin create command failed on "svnadmin: Can't create directory
'foo\locks': The filename or extension is too long."
So, there is a Subversion limit on Windows directory length, but it is
a limit of the OS and not Subversion itself. Tortoise seems to get
around the issue by using the Unicode directory API instead of the
standard directory API used by almost all other Windows programs
including Microsoft's VisualStudio, Windows Explorer, and the Windows
command line.
Surprisingly, the Subversion command line commands cannot get around
this limit. Again, I am not sure it is the fact that the Subversion
command line commands are using the standard directory API that hits
this limit, or because they are operating in the command line
environment where this limit exists.
I also notice that Cygwin also hits the same limits which is
surprising since it really doesn't use the Windows shell.
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Re: A little question about SVN
Posted by John Niven <jn...@bravurasolutions.com>.
> -----Original Message-----
> From: Gleason, Todd [mailto:tgleason@impac.com]
> Sent: Sunday, 16 November 2008 07:17
> To: Erik Huelsmann; Engebakken Geir
> Cc: David Weintraub; djilali31@wadja.com; users@subversion.tigris.org
> Subject: RE: Re: A little question about SVN
>
> > -----Original Message-----
> > From: Erik Huelsmann [mailto:ehuels@gmail.com]
> > Sent: Saturday, November 15, 2008 4:52 AM
> > To: Engebakken Geir
> > Cc: David Weintraub; djilali31@wadja.com;
> users@subversion.tigris.org
> > Subject: Re: A little question about SVN
> >
> > With the right API, you'll be able to create a path name of
> up to 65k
> > characters (or bytes?) long.
>
> MSDN states "approximately 30000 characters". It doesn't
> state whether this is true with Unicode or not. However,
> it's still difficult enough to interact with a path this long
> that I'd avoid it; I'm not really sure what Explorer's length
> limit is (but I've seen it manifest on its own
> before) and the command line itself has its own limit (I
> think 8K is the limit of any command).
I've run up against a limit with Explorer; cmd.exe didn't seem to have the same problem IIRC. I don't recall the limit I found with Explorer, but it wasn't an excessively long path.
Cheers
John
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Re: A little question about SVN
Posted by "Gleason, Todd" <tg...@impac.com>.
> -----Original Message-----
> From: Erik Huelsmann [mailto:ehuels@gmail.com]
> Sent: Saturday, November 15, 2008 4:52 AM
> To: Engebakken Geir
> Cc: David Weintraub; djilali31@wadja.com; users@subversion.tigris.org
> Subject: Re: A little question about SVN
>
> With the right API, you'll be able to create a path name of up to 65k
> characters (or bytes?) long.
MSDN states "approximately 30000 characters". It doesn't state whether
this is true with Unicode or not. However, it's still difficult enough
to interact with a path this long that I'd avoid it; I'm not really sure
what Explorer's length limit is (but I've seen it manifest on its own
before) and the command line itself has its own limit (I think 8K is the
limit of any command).
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: A little question about SVN
Posted by Erik Huelsmann <eh...@gmail.com>.
With the right API, you'll be able to create a path name of up to 65k
characters (or bytes?) long.
If you use Subversion with absolute paths, APR is able to use an API
like that. With relative paths, it's not -unfortunately.
HTH,
Erik.
On Fri, Nov 14, 2008 at 10:57 AM, Engebakken Geir
<ge...@edb.com> wrote:
> I managed to create this path in Vista, which is 250 chars long :
>
> C:/tmp/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/lon
> /long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long
> /long
> ~
>
>
>
> Geir
>
> -----Original Message-----
> From: David Weintraub [mailto:qazwart@gmail.com]
> Sent: 14. november 2008 02:29
> To: djilali31@wadja.com
> Cc: users@subversion.tigris.org
> Subject: Re: A little question about SVN
>
> This is really up to the file system your Subversion server is running on. On Windows, the longest name is somewhere around 158 characters (including directory names and directory separators). On *MOST* Unix/Linux systems, I believe it is somewhere in the neighborhood of 32K.
>
> --
> David Weintraub
> qazwart@gmail.com
>
>
>
> On Thu, Nov 13, 2008 at 5:12 AM, <dj...@wadja.com> wrote:
>> Hi, I have a question about SVN, what's the maximum size of name file
>> please. Thank a lot Best regards,
>>
>> Sent by djilali31@wadja.com | http://wadja.com/djilali31 Click here to
>> connect with djilali on Wadja
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: A little question about SVN
Posted by Engebakken Geir <ge...@edb.com>.
I managed to create this path in Vista, which is 250 chars long :
C:/tmp/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/lon
/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long/long
/long
~
Geir
-----Original Message-----
From: David Weintraub [mailto:qazwart@gmail.com]
Sent: 14. november 2008 02:29
To: djilali31@wadja.com
Cc: users@subversion.tigris.org
Subject: Re: A little question about SVN
This is really up to the file system your Subversion server is running on. On Windows, the longest name is somewhere around 158 characters (including directory names and directory separators). On *MOST* Unix/Linux systems, I believe it is somewhere in the neighborhood of 32K.
--
David Weintraub
qazwart@gmail.com
On Thu, Nov 13, 2008 at 5:12 AM, <dj...@wadja.com> wrote:
> Hi, I have a question about SVN, what's the maximum size of name file
> please. Thank a lot Best regards,
>
> Sent by djilali31@wadja.com | http://wadja.com/djilali31 Click here to
> connect with djilali on Wadja
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Re: A little question about SVN
Posted by "Gleason, Todd" <tg...@impac.com>.
I don't think that's strictly true. NTFS supports longer paths, but
most applications in Windows don't support such long paths. TortoiseSVN
for example went through some hoops to enable long filename support.
The key is prefixing the path with "\\?\". For more information, see
http://msdn.microsoft.com/en-us/library/aa365247.aspx
--Todd
> -----Original Message-----
> From: David Weintraub [mailto:qazwart@gmail.com]
> Sent: Thursday, November 13, 2008 6:29 PM
> To: djilali31@wadja.com
> Cc: users@subversion.tigris.org
> Subject: Re: A little question about SVN
>
> This is really up to the file system your Subversion server is running
> on. On Windows, the longest name is somewhere around 158 characters
> (including directory names and directory separators). On *MOST*
> Unix/Linux systems, I believe it is somewhere in the neighborhood of
> 32K.
>
> --
> David Weintraub
> qazwart@gmail.com
>
>
>
> On Thu, Nov 13, 2008 at 5:12 AM, <dj...@wadja.com> wrote:
> > Hi, I have a question about SVN, what's the maximum size of name
file
> > please. Thank a lot Best regards,
> >
> > Sent by djilali31@wadja.com | http://wadja.com/djilali31
> > Click here to connect with djilali on Wadja
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: A little question about SVN
Posted by Mark Eichin <ei...@gmail.com>.
Umm, why would the *server* filesystem be a restiction? Versioned
files are stored as deltas, not paths in the filesystem. (Being able
to succesfully check out a file of a given length name could run into
*client* operating system restrictions, of course...)
On Thu, Nov 13, 2008 at 8:29 PM, David Weintraub <qa...@gmail.com> wrote:
> This is really up to the file system your Subversion server is running
> on. On Windows, the longest name is somewhere around 158 characters
> (including directory names and directory separators). On *MOST*
> Unix/Linux systems, I believe it is somewhere in the neighborhood of
> 32K.
>
> --
> David Weintraub
> qazwart@gmail.com
>
>
>
> On Thu, Nov 13, 2008 at 5:12 AM, <dj...@wadja.com> wrote:
>> Hi, I have a question about SVN, what's the maximum size of name file
>> please. Thank a lot Best regards,
>>
>> Sent by djilali31@wadja.com | http://wadja.com/djilali31
>> Click here to connect with djilali on Wadja
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
--
_Mark_ <ei...@thok.org> <ei...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: A little question about SVN
Posted by David Weintraub <qa...@gmail.com>.
This is really up to the file system your Subversion server is running
on. On Windows, the longest name is somewhere around 158 characters
(including directory names and directory separators). On *MOST*
Unix/Linux systems, I believe it is somewhere in the neighborhood of
32K.
--
David Weintraub
qazwart@gmail.com
On Thu, Nov 13, 2008 at 5:12 AM, <dj...@wadja.com> wrote:
> Hi, I have a question about SVN, what's the maximum size of name file
> please. Thank a lot Best regards,
>
> Sent by djilali31@wadja.com | http://wadja.com/djilali31
> Click here to connect with djilali on Wadja
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org