[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: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Mon, 24 Sep 2012 09:52:14 +0100

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2012c_at_ryandesign.com]
> Sent: 24 September 2012 09:22
> To: Andreas Tscharner
> Cc: Alexei Baranov; users_at_subversion.apache.org
> Subject: Re: SVN and PRN and CON files on Windows platform
> 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".

That sounds like something someone may already have done and I'm always interested in good hook script examples for windoze, anyone?

~ mark c
Received on 2012-09-24 11:04:54 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.