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

Re: Update of the svn:executable property

From: David Weintraub <qazwart_at_gmail.com>
Date: Tue, 24 Feb 2009 14:19:39 -0500

On Tue, Feb 24, 2009 at 7:00 AM, A. L. <trimante_at_yahoo.it> wrote:
> Hi all!
> I'm facing the problem of the change of the executable bit of files under
> version control.
> I red the manual and looked around the web and all I got is "svn:executable
> is automatically managed only during adds and imports".

You can add the svn:executeable property any time to any file that
should be executable. When you do a checkout the next time, the
executable bit will automatically be set. No need for chmod.

> I can also imagine a pre-commit script that checks all the executable bit of
> all versioned files and propsets svn:executable for all the executable files
> and propdels for all the others... but it's unapplicable for large file
> bases like the one I'm working with.

You can't have a pre-commit hook make any changes, even add a property
to a file. However, your pre-commit hook script can reject a commit if
it contains files that should be executable, but don't have
svn:executable on them.

In fact, that's exactly what my pre-commit hook script does. After one
or two rejections, people will set the autoprops to put svn:executable
on files that should be executable.

--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1222042
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-24 20:20:32 CET

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