I will implement version checking soon provide the set of modified files (against scmbug 0-26-15) so that the project maintainer can create a patch and include in next scmbug version
Still, there is problem with special comments (DUPLICATE etc.) since I haven't been able to discover the correct arguments to Bugzilla::Bug::add_comment _____ From: Elias Balasis [mailto:[email protected]] Sent: Friday, August 21, 2009 9:51 PM To: '[email protected]' Subject: invalid bug attribute AppendComment - Bugzilla 3.4.1 support I have found the solution Bugzilla::Bug::AppendComment function does not exist in version 3.4.1 (perhaps deprecated in earlier versions) I had to modify Scmbug::Daemon::Bugzilla->integration_add_comment function replacing AppendComment call with the following code my $bug = Bugzilla::Bug->check($bugid); my $user = new Bugzilla::User($userid); Bugzilla->set_user($user); $bug->add_comment($comment, {isprivate => 0, work_time => 0, type => Bugzilla::Constants->CMT_NORMAL, extra_data => "this is extra data"} ); $bug->update(); Please consider changing this wherever required Also consider providing an additional set of is_version_X_X_X functions for supporting versions of Bugzilla with missing AppendComment function (I suspect this occurred in 3.X.X release of Bugzilla) _____ From: Elias Balasis [mailto:[email protected]] Sent: Thursday, August 20, 2009 2:29 AM To: '[email protected]' Subject: invalid bug attribute AppendComment - Bugzilla 3.4.1 support Has anyone tried to use scmbug with Bugzila 3.4.1 and SVN? I did. But I got the post-commit hook reported the following error 2009/08/19 18:17:30 Scmbug WARN> Daemon.pm:568:Scmbug::Daemon::Daemon::spawn_child - 127.0.0.1:49069 Processing connection from localhost.localdomain 2009/08/19 18:17:30 Scmbug WARN> Process.pm:885:Scmbug::Daemon::Process::process_activity_verify - 127.0.0.1:49069 Processing an 'activity_verify' for bug id '2' from SCM user 'eliasbalasis' 2009/08/19 18:17:30 Scmbug WARN> Daemon.pm:582:Scmbug::Daemon::Daemon::spawn_child - 127.0.0.1:49069 Connection from localhost.localdomain processed 2009/08/19 18:17:30 Scmbug WARN> Daemon.pm:568:Scmbug::Daemon::Daemon::spawn_child - 127.0.0.1:49072 Processing connection from localhost.localdomain 2009/08/19 18:17:30 Scmbug WARN> Process.pm:866:Scmbug::Daemon::Process::process_activity_commit - 127.0.0.1:49072 Processing an 'activity_commit' for bug id '2' from SCM user 'eliasbalasis' 2009/08/19 18:17:30 Scmbug ERROR> Carp.pm:45:Carp::confess - invalid bug attribute AppendComment at /var/www/html/bugs/Bugzilla/Bug.pm line 3676 Bugzilla::Bug::AUTOLOAD(2, 1, 'scmbug test 3\x{a}\x{a}\x{a}Branch: com.artifax.projects.mdahellas...') called at /usr/share/scmbug/lib/Scmbug/Daemon/Bugzilla.pm line 517 Scmbug::Daemon::Bugzilla::integration_add_comment('Scmbug::Daemon::Bugzilla= HASH(0x997853c)', 2, '[email protected]', 'scmbug test 3\x{a}\x{a}\x{a}Branch: com.artifax.projects.mdahellas...') called at /usr/share/scmbug/lib/Scmbug/Daemon/Integration.pm line 428 Scmbug::Daemon::Integration::add_comment_to_all('Scmbug::Daemon::Integration =HASH(0xa7235cc)', '[email protected]', 'scmbug test 3\x{a}\x{a}\x{a}Branch: com.artifax.projects.mdahellas...', 'ARRAY(0xa716084)') called at /usr/share/scmbug/lib/Scmbug/Daemon/Integration.pm line 89 Scmbug::Daemon::Integration::process_activity_commit('Scmbug::Daemon::Integr ation=HASH(0xa7235cc)') called at /usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 867 Scmbug::Daemon::Process::process_activity_commit('Scmbug::Daemon::Process=HA SH(0x9954b74)', 'Scmbug::Daemon::Request=HASH(0xa58db9c)') called at /usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 784 Scmbug::Daemon::Process::process_activity('Scmbug::Daemon::Process=HASH(0x99 54b74)', 'Scmbug::Daemon::Request=HASH(0xa58db9c)') called at /usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 152 Scmbug::Daemon::Process::process_connection('Scmbug::Daemon::Process=HASH(0x 9954b74)', '*main::STDIN', '*main::STDOUT', 'Scmbug::Daemon::Request=HASH(0xa58db9c)') called at /usr/share/scmbug/lib/Scmbug/Daemon/Daemon.pm line 572 Scmbug::Daemon::Daemon::spawn_child('Scmbug::Daemon::Daemon=HASH(0x93aca14)' , 'localhost.localdomain', 127.0.0.1, 49072) called at /usr/share/scmbug/lib/Scmbug/Daemon/Daemon.pm line 486 Scmbug::Daemon::Daemon::start_daemon_forked('Scmbug::Daemon::Daemon=HASH(0x9 3aca14)') called at /usr/share/scmbug/lib/Scmbug/Daemon/Daemon.pm line 403 Scmbug::Daemon::Daemon::start_daemon('Scmbug::Daemon::Daemon=HASH(0x93aca14) ', '/etc/scmbug/daemon.conf') called at /usr/sbin/scmbug_daemon.pl line 39 main::main('/etc/scmbug/daemon.conf') called at /usr/sbin/scmbug_daemon.pl line 28 Any ideas anyone?
_______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
