Checkout Linux Kernel Error

47 views
Skip to first unread message

Andreas

unread,
Jul 3, 2018, 10:41:32 AM7/3/18
to torto...@googlegroups.com

Hi,

if I checkout on Windows10 a repository (linux kernel) which was committed under Linux I get the following error:
 (WIN10 Version: TortoiseSVN 1.9.5, Build 27581 - 64 Bit , 2016/11/26 09:18:58)














What does the error means?
What can I do?
Thanks
Andreas

Stefan

unread,
Jul 3, 2018, 1:22:09 PM7/3/18
to TortoiseSVN
Windows does not allow certain "file" names, like "aux", even if the file is named "aux.h".
See here:

  • Do not use the following reserved names for the name of a file:

    CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed immediately by an extension; for example, NUL.txt is not recommended. For more information, see Namespaces.

Luc Van der Veken

unread,
Jul 4, 2018, 2:12:20 AM7/4/18
to torto...@googlegroups.com
Yet this works, on Windows 10 (I have Cygwin installed and in my path, that's the version of touch this is using).
But I agree that it's a bad idea. Windows Explorer will show you those files, but trying to open or delete them will fail.

C:\Temp>touch aux.txt

C:\Temp>touch aux

C:\Temp>dir
 Volume in drive C is System
 Volume Serial Number is 5643-4998

 Directory of C:\Temp

04/07/2018  08:11    <DIR>          .
04/07/2018  08:11    <DIR>          ..
04/07/2018  08:07                 0 aux
04/07/2018  08:07                 0 aux.txt
               2 File(s)              0 bytes
               2 Dir(s)  120,131,608,576 bytes free



Andreas Vogt

unread,
Jul 4, 2018, 2:43:29 AM7/4/18
to TortoiseSVN on behalf of Luc Van der Veken
Hi,

how should me help your comment? In my case it doesn't work. The question is, what do I have to do to make it work?
Andreas
!

2018-07-04 8:12 GMT+02:00 Luc Van der Veken via TortoiseSVN <tortoisesvn+APn2wQeYZa_K1z02uGFp...@googlegroups.com>:
Yet this works, on Windows 10:

C:\Temp>touch aux.txt

C:\Temp>touch aux

C:\Temp>dir
 Volume in drive C is System
 Volume Serial Number is 5643-4998

 Directory of C:\Temp

04/07/2018  08:11    <DIR>          .
04/07/2018  08:11    <DIR>          ..
04/07/2018  08:07                 0 aux
04/07/2018  08:07                 0 aux.txt
               2 File(s)              0 bytes
               2 Dir(s)  120,131,608,576 bytes free



--
You received this message because you are subscribed to the Google Groups "TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tortoisesvn+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/d5dcdfdb-e4b9-4f42-adea-a8da6c07858f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Luc Van der Veken

unread,
Jul 4, 2018, 2:50:55 AM7/4/18
to TortoiseSVN
My intention was to show that it is possible to use those file names, but it remains a bad idea because the shells (explorer.exe and cmd.exe) handle them badly.

I edited my reply immediately after posting to make that clearer, but apparently I wasn't fast enough, you had already read the unedited version.

And since Tortoise is a shell extension attached to explorer.exe, it probably won't be possible to implement it here. What might work is the command line version, but then you'll still have to wait and see if your favorite code editor etc. will handle those files better.

David Balažic

unread,
Jul 4, 2018, 5:31:31 AM7/4/18
to TortoiseSVN
This is not correct. Those names do work. But there is software that can not handle them.

Working example:

V:\tmp>type \\?\v:\tmp\aux.txt
the content

V:\tmp>notepad  \\?\v:\tmp\aux.txt
(opens the file in notepad)

As Linus will not change those filenames, in my opinion the correct thing is to support them as they are and delay the error as much as possible.
That is: (T)SVN should checkout them without error (maybe a warning?). If the user then accesses them with software that can not handle them, they'll get an error then (and not before).

Regards,
David
Reply all
Reply to author
Forward
0 new messages