[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Pre-commit hook to verify Perl syntax

From: Peter Werner <l.svn_at_vasas.no-ip.org>
Date: 2006-09-15 12:33:58 CEST

> > Filter between svnlook cat and perl -c that removes module
> > references?
> But that would break the code too. I think it would be tricky to not
> breat it, unless there's something I didn't see. Did you think about
> something special to do it without breaking the code?

It breaks the code but it's not a problem. The question is if it breaks
the syntax. Sometimes it does and sometimes it's not so easy to filter
out modules. However you can make a rule how to use modules and perhaps
your code allows this easy way. E.g. the following example passes
syntax check, just cause runtime error:

#filtered#use Math::Complex;
my $z = Math::Complex->make(4, 2);

Modules are problems not only for your syntax checks so a more complex
solution would be a policy, that every new module must be listed in a
file and installed on the svn server before it can be used. That
external dependency list could be very helpful in the future.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 15 12:34:36 2006

This is an archived mail posted to the Subversion Users mailing list.