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

Re: File Permissions

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: Wed, 4 Jun 2008 02:30:16 +0200

On 2008-06-02 18:01:12 +0200, Marc Haisenko wrote:
> As far as I remember that feature is not included in SubVersion because it
> opens a few cans of worms. For example, not every OS supports the same
> permissions (Windows file permissions vs. UNIX file permissions vs. ACLs vs.
> Mainframe). How to deal with that ?

Well, Unix file permissions would be applied under Unix only and so on.
IMHO, permissions are mainly (if not only) useful when the user manages
his own files with Subversion. And if he is only under Unix, then this
is fine. Now I think that a client-side hook (as I suggested) would be
a better solution as it allows to do exactly what the user wants. And
this is 100% safe as the hook would be installed by the owner of the
working copy (security holes can only be introduced by the user himself,
but this isn't specific to Subversion).

On 2008-06-03 11:51:21 +0200, Marc Haisenko wrote:
> On Monday 02 June 2008, Matthias Fechner wrote:
> > Marc Haisenko schrieb:
> > > There are scripts that can store the permissions in SubVersion
> > > properties and restore them from there.
> >
> > oh that is a great info. Do you have a link to such scripts?
>
> Yes, on http://subversion.tigris.org/tools_contrib.html I found "asvn"
> (http://svn.collab.net/repos/svn/trunk/contrib/client-side/asvn).

But if I understand correctly such a script does a lot of useless work
(e.g. getting permissions on all the files, even those that have not
changed and those that are not managed by Subversion), thus is slow
on a large working copy. Moreover permissions are not restored (for
updated files) in real time, i.e. just after a file has been updated.

So, I think there is a real need for client-side hooks. For instance,
each time a file/directory is updated a hook could be executed with
the necessary information (e.g. the file/directory name and a way to
retrieve the properties, or there could be a special property for the
client-side hooks, whose contents are specified by the users).

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-04 02:31:13 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.