[cvsspam-devel] CVSSPAM and SVN
Jerry Talton
jot3 at cs.stanford.edu
Fri Sep 14 00:33:50 UTC 2007
I recently installed CVSSPAM in a subversion repository that I'm
helping maintain, with the usual post-commit script to call
svn_post_commit_hook.rb. For the most part, it works great, but any
time I add or change a binary file I get the following:
Warning: 'post-commit' hook failed with error output:
/web/svn/elysium/hooks/svn_post_commit_hook.rb:155:in `assert_next':
undefined local variable or method `lines' for
#<LineReader:0xb7fa7974> (NameError)
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:164:in
`read_modified_diff'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:278:in
`process_svnlook_diff'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:274:in `svnlook'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:94:in `safer_popen'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:45:in `popen'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:45:in `safer_popen'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:94:in `svnlook'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:274:in
`process_svnlook_diff'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:299:in
`process_commit'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:297:in `open'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:297:in
`process_commit'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:307:in `main'
from /web/svn/elysium/hooks/svn_post_commit_hook.rb:313
I am really only a novice Ruby programmer: can someone suggest a
workaround? It seems as if it shouldn't try to read_modified_diff on
binary files, right?
Any help would be *much* appreciated!!
--
Jerry Talton
jtalton at cs.stanford.edu
http://www.stanford.edu/~jtalton
More information about the cvsspam-devel
mailing list