On 10/20/08 12:56, Frank Schönheit - Sun Microsystems Germany wrote:
> > ... modules ...
Not sure this is needed. AFAIK it is (at least in CVS times it was)
necessary to do other things for adding a new module (announcement to
releng etc.), so just preventing the commit doesn't really solve a
problem, IMO.
> ... toplevel dirs ...
Not sure this is worth it. I still think ignore lists are the best way
to prevent accidental committing of output trees, and for all other
dirs, we should not force us to a special commit message without a need.
Subversion does not care about "modules", however the build system
might. Restricting toplevel dirs are probably an superfluous hassle - it
was just something that was easily implemented after having code
watching for certain dirs. I added the toplevel dir stuff, because you
can still commit an svn:ignored directory. However, Im not vicious about
that toplevel stuff.
Given that pre- and postcommit hooks are basically working the same,
using this precommit hooks as a base to create a postcommit hook should
be easy. That hook should automagically svn:ignore output dirs when a
new module is created in a cws. I think that would better than a cronjob
svn:ignoreing all files as:
- output trees are svn:ignored right after the module is created and
even in the cws
- you only need to manage the platforms in the postcommit hook, no need
to track every platform/module combination.
- Never allows changes/deleting of tagged versions
preventing changes sounds good, preventing deletion of tags - not sure.
At least in CVS times, tags became a pain in the neck over time (because
there were so many), but this probably doesn't apply to SVN.
Its less of an issue with svn and remember this check can be disabled by
a special commit message (containing "MODIFY TAGS"). The svn-client
would barf up that info too when rejecting a commit.
Have Fun,
Björn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]