Hi all. I have Subversion running on NetBSD 3.0 and it was working very well. The other day I updated pkgsrc using cvs and I upgraded all of my installed packages using pkg_chk (which I have done successfully many times before). Before the update everything was working perfectly.
I have a post-commit hook in place so that when changes are commited a script is fired.
Contents of the post-commit script:
Code:
REPOS="$1"
REV="$2"
EMAILS="fenris@myISP.com"
/usr/pkg/bin/svn_scripts/commit-email.rb "$REPOS" "$REV" $EMAILS --name "Code Te
sts Repo" -f "SVN@myServer.com" --no-diff --repository-uri "myserverURL"
Here is the error message that I get sent to me via email:
Code:
NameError: uninitialized constant Svn::Client
/usr/pkg/lib/ruby/site_ruby/1.8/svn/util.rb:58:in `svn_repos_fs_wrapper'
/usr/pkg/lib/ruby/site_ruby/1.8/svn/util.rb:58:in `fs_wrapper'
/usr/pkg/lib/ruby/site_ruby/1.8/svn/repos.rb:85:in `fs'
/usr/pkg/lib/ruby/site_ruby/1.8/svn/info.rb:49:in `setup'
/usr/pkg/lib/ruby/site_ruby/1.8/svn/info.rb:34:in `initialize'
/usr/pkg/bin/svn_scripts/commit-email.rb:387:in `main'
/usr/pkg/bin/svn_scripts/commit-email.rb:414
It is also located here "/usr/pkg/share/examples/subversion/ruby/commit-email.rb" within the NetBSD file system. I imagine that it is the same script on other O/S's as well. I added 2 lines to the script so that links would be properly formated in the email that is sent out.
Change 1:
Code:
require "tempfile"
#The line below was added after the above line
require "uri"
Change 2:
Code:
link = [uri, key].compact.join("/")
#The line below was added after the above line
link = URI.encode(link)
I don't think it is a subversion problem as I can commit/update/check out files properly. I think it is a ruby problem. I know very little about Ruby (just enough to make minor modifications), so any ideas would be greatly appreciated.