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

Re: A couple thousand mp3 files (this is not spam <honest> I swear </honest>)

From: Branko Čibej <brane_at_apache.org>
Date: Sun, 14 Aug 2016 03:33:02 +0200

On 14.08.2016 00:20, Adam Jensen wrote:
> What would an "svnserve.conf" file with "write once" access control look like?

There is (currently) no easy way to specify "write once" access for
files in the repository; whoever can create a file can modify or delete
it, too. You could achieve something like that by creating a custom
pre-commit hook that would examine the pending commit transaction and
reject the commit if it finds modifications or deletions of existing files

But note that a rename is represented as an add+delete, so the hook
would have to be rather smarter than it would seem at first glance to
detect and allow renames without content modification.

-- Brane
Received on 2016-08-14 03:33:08 CEST

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