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

Re: 'svn chmod' or alike ?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-12-12 18:32:39 CET

On Fri, 2003-12-12 at 04:24, Vincent Lefevre wrote:
> On 2003-12-12 00:25:29 +0100, Sebastien Cevey wrote:
> > I have a question about permissions in the working copy, but I don't
> > think it is related to the "WC permissions" thread.
> >
> > My question is, is there a way to save (probably in the repository)
> > the permission bits of a file ?
>
> I don't think so, and I would also be very interested in such a feature.
> For the moment, I have a script (run from time to time) that sets the
> permissions on some of my files and directories.

It can't be done, because there's no portable way to get/set
permissions. It's not in APR, and it probably can't ever be. At most,
the only portable concepts we can (and do) have are, "make this file
executable" and "make the file read-only". There's no portable way to
be more fine-grained than that. Unix and Windows have vastly different
permissions systems.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 12 18:34:01 2003

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.