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

RE: [PATCH] [Issue 870] import should set svn:executable automatically

From: Barry Scott <barry.alan.scott_at_ntlworld.com>
Date: 2002-09-25 23:17:31 CEST

svn:executable is not a valid concept expect for Unix.

From SVN's point of view nothing requires the svn:executable attribute on

You must add unix specific code to do this right. From a none Unix OS its a
manual operation to set the attribute. So I can add a shell script and
set it executable from a windows box.

You have to have platform specific code. Maybe an APR call that tells you
if executable bits are supported by the OS.

> Quoting Greg Hudson <ghudson@MIT.EDU>:
> > On Wed, 2002-09-25 at 13:23, Branko Čibej wrote:
> > > I have a strong suspicion that this function will almst
> always say "yes"

Indeed after all double click a .TXT file and code runs...

> > > on Windows, which is exactly what you don't want. No, don't
> ask me for a
> > > solution; I don't have one, short of horrible platform-specifics.
> >
> > Sometimes horrible platform-specifics are the answer.
> >
> > Is it fair to say that on Windows, a file is executable if its name ends
> > in .exe or .com?
> >
> Not quite. You should see whether it ends with any of the things
> listed in
> %PATHEXT%. On my machine that is:

No you should not check this as the idea of svn:executable is not
valid on windows.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 25 23:18:14 2002

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

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