Héctor Velarde wrote:
> 
> according to the SVN book (compiled from Revision 1337) there is a 
> easier way to do this:
> 
> page 132:
> 
> Automatic Property Setting
> 
> [...]
> 
> Subversion also provides the auto-props feature, which allows you to 
> create mappings of filename patterns to property names and values. These 
> mappings are made in your runtime configuration area. They again affect 
> adds and imports, and not only can override any default MIME type 
> decision made by Subversion during those operations, they can also set 
> additional Subversion or custom properties, too. For example, you might 
> create a mapping that says that any time you add JPEG files—ones that 
> match the pattern *.jpg—Subversion should automatically set the 
> svn:mime-type property on those files to image/jpeg. Or perhaps any 
> files that match *.cpp should have svn:eol-style set to native, and 
> svn:keywords set to Id. Auto-prop support is perhaps the handiest 
> property related tool in the Subversion toolbox. See the section called 
> “Config” for more about configuring that support.
> 
> [end of quotation]
> 
> you can see the page 120 for further info.
> 
> saludos
> 
> 


Hi Héctor,

Thanks for the feedback,

AFAIK, the thing your refer too will not allow to do deep checkings as we
want:

the script we are hooking opens the source file commited, looks for bad end
of line and tab
presence, the returns an error to the commiter.

Auto propset is a feature that changes some properties, like the mimetype

cheers

Tarek
-- 
View this message in context: 
http://www.nabble.com/Proposal%3A-adding-a-pre-commit-hook-in-the-collective-tp14577671s20094p14585091.html
Sent from the Product Developers mailing list archive at Nabble.com.


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to