History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: HAUS-1455
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andrea Aime
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Haus Chores

Allow admins to set up precommit hooks

Created: 19/Feb/07 04:49 AM   Updated: 08/May/07 05:01 AM
Component/s: Subversion
Affects Version/s: short-term
Fix Version/s: short-term

Time Tracking:
Not Specified


 Description  « Hide
One common issue with projects that do use some kind of automated formatting (such as Geoserver and Geotools) is that formatters (jalopy) do use the platform native eol when reformatting files. If files do not have the svn:eol-style=native property, each reformat on different platform will change EOL, making diffs useless.
Subversion folks suggest to add precommit hooks that disallow commit if certain properties are not set on files.
It would be really nice if codehaus allowed project admin to set up this kind of precommit hook.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Cedric Vivier - 08/May/07 04:28 AM
I second this. Would be very appreciated.

Ben Walding - 08/May/07 05:01 AM
precommit hooks run in the context of either the user (svn+ssh) or apache (https + dav); hence we can't let random people write random scripts that run in the context of apache.

What we can do however is offer some kind of option to enable / disable a script per project if we can't just apply it carte blanche to all projects.

Can you provide an example of the precommit hook, and the likely places that people would want to customise it?