On Feb 3, 2005, at 2:20 PM, allan juul wrote:
> hello
>
> i can predict we will get some problems when our developer group will
> tag modules themselves, so i thought if it would be possible (and
> wise) to install a commit-hook that brutally will convert whatever
> they are trying to tag into a pre-defined naming standard. we know
> beforehand that the actual modules reside correctly in trunk.
>
> for instance:
>
> trunk module:
>
> http://asite.com/svn/trunk/module
>
>
> developer try to tag to
>
> http://asite.com/svn/trunk/module/what_a_mess/my_brillant_tag_name
>
>
> but commit-script will auto-convert all that into
>
> http://asite.com/svn/tags/module/v_178
>
> [the script will see the latest version is v_177]
>
>
> would that be possible currently ?
>
You *cannot* change a commit transaction in the pre-commit hook. See
the big warning box in this section of the book:
http://svnbook.red-bean.com/en/1.1/ch05s02.html#svn-ch-5-sect-2.1
Instead, what you want to do is have your pre-commit hook reject any
commit that fails to comply with the standard.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 3 21:35:11 2005