niwadhwa / bugzilla-vcs

Automatically exported from code.google.com/p/bugzilla-vcs
0 stars 0 forks source link

sync.pl aborts due to missing REQUIRED_CREATE_FIELDS #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the sync.pl script along with a subversion 1.6.6 repository and a 
bugzilla 3.6.2 installation.  It's invoked as:

perl extensions/VCS/sync.pl --verbose --type=Svn --as=xyz@anonymous.com  
file:///home/svn/repo/sandbox2

The script aborts saying it "Can't locate object method "REQUIRED_CREATE_FIELDS"

The output is:
perl extensions/VCS/sync.pl --verbose --type=Svn --as=xyz@anonymous.com  
file:///home/svn/repo/sandbox2
Getting contents for  rev 15510
Syncing trunk...
Calling get_log for trunk START: 0 END: 15510
13199 commits to examine for syncing...
Bug 67 was mentioned in commit 2498 but does not exist or cannot be accessed by 
xyz@anonymous.com.
Bug 83 was mentioned in commit 2498 but does not exist or cannot be accessed by 
xyz@anonymous.com.
Bug 49 was mentioned in commit 2513 but does not exist or cannot be accessed by 
xyz@anonymous.com.
Bug 102 was mentioned in commit 2515 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 102 was mentioned in commit 2516 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 114 was mentioned in commit 2846 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 125 was mentioned in commit 3642 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 125 was mentioned in commit 3642 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 123 was mentioned in commit 3642 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 125 was mentioned in commit 3642 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 125 was mentioned in commit 3644 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 11856 was mentioned in commit 4353 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Bug 11856 was mentioned in commit 4354 but does not exist or cannot be accessed 
by xyz@anonymous.com.
Syncing branches...
Calling get_log for branches START: 0 END: 15510
2213 commits to examine for syncing...
Getting diff for 'file:///home/svn/repo/sandbox2/branches' from 4488 to 4489
Can't locate object method "REQUIRED_CREATE_FIELDS" via package 
"Bugzilla::Extension::VCS::CommitFile" at Bugzilla/Object.pm line 437.

Original issue reported on code.google.com by kro...@gmail.com on 21 Sep 2010 at 11:30

GoogleCodeExporter commented 9 years ago
Thanks! I'm investigating now how that could happen.

Original comment by avatrax...@gmail.com on 22 Sep 2010 at 12:57

GoogleCodeExporter commented 9 years ago
Indeed, CommitFile was missing REQUIRED_CREATE_FIELDS, and so wouldn't work on 
3.6. I've added it, and committed the fix to bzr:

Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/extensions/vcs/trunk/        
modified lib/CommitFile.pm
Committed revision 21.

You can get a fixed version by checking out a new version from that repo or 
wait until I release 0.2 (which may be a few weeks).

Original comment by avatrax...@gmail.com on 22 Sep 2010 at 1:16