Thanks, applied this and added som info about svn/cvs already being skipped.<br><br><div><span class="gmail_quote">On 07/09/06, <b class="gmail_sendername">Michiel Ootjers</b> <<a href="mailto:michiel@aspera.nl">michiel@aspera.nl
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Heheh, more a commercial system (BitKeeper). In a BitKeeper repository you
<br>will find the directories BitKeeper and SCCS (the directory BitKeeper is only<br>available in the repository root, but for completeness).<br><br>except => qr/SCCS|BitKeeper/<br><br>is my line in the config.<br><br>
Regards,<br><br>Michiel Ootjers<br><br>On wo, 06 sep 2006, Jonathan Rockway wrote:<br><br>> Just for the record, M::P skips CVS and SVN already. You are using a<br>> weird version control system :) Thanks for the report, though.
<br>><br>> However, we never resolved the skipping issues, though, and probably<br>> need to come up with a better exclude list for the next release. My<br>> suggestions is:<br>><br>> files:<br>> ^[.]#.+# 'emacs
<br>> ~$ 'backup files<br>><br>> directories:<br>> ^[.].+$ 'hidden directories<br>> CVS<br>> SCCS<br><br>BitKeeper<br><br>> Please add to this list if there's something else you think we should skip.<br>
><br>> I'm not sure that M::P::O can determine whether or not a path is a file<br>> or directory. If not, we might need to add this functionality (to avoid<br>> the hell that is filesystem item separators inside regexes).
<br>><br>> Regards,<br>> Jonathan Rockway<br>><br>> Martijn van de Streek wrote:<br>> > Hi,<br>> ><br>> > I've written a short section in Cookbook.pod which explains how to use<br>> > the 'setup_components' config option to skip loading modules from the
<br>> > directories some version control systems create.<br>> ><br>> > Martijn<br>> ><br>> ><br>> > ------------------------------------------------------------------------<br>> >
<br>> > --- /usr/local/share/perl/5.8.7/Catalyst/Manual/Cookbook.pod 2006-07-19 23:45:17.000000000 +0200<br>> > +++ Cookbook.pod 2006-09-06 15:05:24.000000000 +0200<br>> > @@ -205,6 +205,25 @@<br>
> ><br>> > See also L<YAML>.<br>> ><br>> > +=head3 Skipping your VCS's directories<br>> > +<br>> > +Catalyst uses Module::Pluggable to load Models, Views and Controllers.<br>> > +Module::Pluggable will scan through all directories and load modules it finds.
<br>> > +Sometimes you might want to skip some of these directories, for example when<br>> > +your version control system makes a subdirectory with meta-information in every<br>> > +version-controlled directory.
<br>> > +<br>> > +You can make catalyst skip these directories using the Catalyst config:<br>> > +<br>> > + # Configure the application<br>> > + __PACKAGE__->config(<br>> > + name => 'MyApp',
<br>> > + setup_components => { except => qr/SCCS/ },<br>> > + );<br>> > +<br>> > +See the Module::Pluggable manual page for more information on B<except><br>> > +and other options.
<br>> > +<br>> > =head1 Users and Access Control<br>> ><br>> > Most multiuser, and some single user web applications require that<br>> ><br>> ><br>> > ------------------------------------------------------------------------
<br>> ><br>> > _______________________________________________<br>> > Catalyst-dev mailing list<br>> > <a href="mailto:Catalyst-dev@lists.rawmode.org">Catalyst-dev@lists.rawmode.org</a><br>> >
<a href="http://lists.rawmode.org/mailman/listinfo/catalyst-dev">http://lists.rawmode.org/mailman/listinfo/catalyst-dev</a><br><br>_______________________________________________<br>Catalyst-dev mailing list<br><a href="mailto:Catalyst-dev@lists.rawmode.org">
Catalyst-dev@lists.rawmode.org</a><br><a href="http://lists.rawmode.org/mailman/listinfo/catalyst-dev">http://lists.rawmode.org/mailman/listinfo/catalyst-dev</a><br></blockquote></div><br>