mf69/svnspam

svn mv causes commit-hook to fail

Opened this issue · 1 comments

What steps will reproduce the problem?
Using mv on an existing file.
1. svn mv file-a file-b
2. svn commit


What is the expected output? What do you see instead?

Warning: 'post-commit' hook failed with error output:

Please use labels and text to provide additional information.


Original issue reported on code.google.com by m...@foster.cc on 11 Dec 2008 at 9:00

Here is the output found in the error log (/tmp/svnspam.log)
/srv/bitpusher/svn/puppet 393
/opt/svnspam/svn_post_commit_hook.rb:291:in `process_svnlook_diff': unable to 
parse
line "===================================================================\n"
(RuntimeError)
        from /opt/svnspam/svn_post_commit_hook.rb:96:in `svnlook'
        from /opt/svnspam/svn_post_commit_hook.rb:49:in `safer_popen'
        from /opt/svnspam/svn_post_commit_hook.rb:45:in `popen'
        from /opt/svnspam/svn_post_commit_hook.rb:45:in `safer_popen'
        from /opt/svnspam/svn_post_commit_hook.rb:95:in `svnlook'
        from /opt/svnspam/svn_post_commit_hook.rb:275:in `process_svnlook_diff'
        from /opt/svnspam/svn_post_commit_hook.rb:300:in `process_commit'
        from /opt/svnspam/svn_post_commit_hook.rb:298:in `open'
        from /opt/svnspam/svn_post_commit_hook.rb:298:in `process_commit'
        from /opt/svnspam/svn_post_commit_hook.rb:308:in `main'
        from /opt/svnspam/svn_post_commit_hook.rb:314

Original comment by m...@foster.cc on 17 Dec 2008 at 9:51