>>>> What steps will reproduce the problem?
1.correctly install the bugzilla-vcs extension
2.[root@localhost bugzilla]# perl extensions/VCS/sync.pl --type=Svn
--as=user@mail.com file:///var/www/svn/repos/
>>>> What is the expected output? What do you see instead?
>> expected output should be:
Getting contents for rev 7
...
Getting diff for 'file:///var/www/svn/repos/mytestproj' from 5 to 6
>> but I got:
7 commits to examine for syncing...
The 'nanosecond' parameter ("707028000.000001") to DateTime::new did not pass
the 'a positive integer' callback
at /usr/lib64/perl5/DateTime.pm line 176.
DateTime::new(undef, 'hour', 00, 'minute', 26, 'month', 7, 'second', 24, ...) called at /usr/share/perl5/DateTime/Format/DateParse.pm line 69
...
main::sync_project('VCI::VCS::Svn::Project=HASH(0x4cde7c0)') called at extensions/VCS/sync.pl line 119
>>>> What version of the product are you using? On what operating system?
svn 1.6.11
bugzilla 4.4
VCS bugzilla extension 0.2
perl v5.10.1
DateTime v0.53
Alien-SVN v1.6.11
Linux 2.6.32-220.el6.x86_64
(I think the problem come from the new version of perl and it's DateTime module)
>>>> Please provide any additional information below.
I solved the problem by add "int " before "$p{ nanosecond } = int $fraction *
1e9 if $fraction;" in line 34 at /usr/share/perl5/DateTime/Format/DateParse.pm
just didn't find the issue here. so i create for people's reference.
the solution refer from: https://rt.cpan.org/Public/Bug/Display.html?id=52470
Original issue reported on code.google.com by jameslee...@gmail.com on 25 Jul 2013 at 7:14
Original issue reported on code.google.com by
jameslee...@gmail.com
on 25 Jul 2013 at 7:14