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

Re: SVN and PRN and CON files on Windows platform

From: Ryan Schmidt <subversion-2012c_at_ryandesign.com>
Date: Mon, 24 Sep 2012 03:21:54 -0500

On Sep 24, 2012, at 03:17, Andreas Tscharner wrote:
>
>> It's not a bug in Subversion; it's a "feature" (or at least a
>> reality that's unlikely to change) of the Windows operating
>> system. On Windows, you may not create a file whose name is
>> "PRN", with any extension.
>
> It would be a great benefit for the user if SVN warns about that fact during "svn add"...

Subversion can't really know if you care about Windows compatibility. Many people don't.

What you can do though, if you care about Windows compatibility, is to write a pre-commit hook script that prevents the addition of files with those names. It won't alert you when you "svn add", but it will prevent the "svn commit".
Received on 2012-09-24 10:22:35 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.