Re: KeyError converting repository
Michael Haggerty <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
Jamma Tino Schwarze wrote: > I'm back again trying to convert a repository. For certain reason > (svn:ignore properties going missing in certain branches during > conversion), Maybe you are seeing issue 122? http://cvs2svn.tigris.org/issues/show_bug.cgi?id=122 If so, it should be fixable with a reasonable amount of effort, but so far nobody has stepped forward. > I'm trying current cvs2svn trunk (r5270). > > It fails with the following error: > > cvs-repo/module1/very/long/path/Initialize.java,v > Traceback (most recent call last): > File "/usr/local/bin/cvs2svn", line 70, in <module> > svn_main(os.path.basename(sys.argv[0]), sys.argv[1:]) > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_lib/main.py", line 113, in svn_main > main(progname, run_options, pass_manager) > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_lib/main.py", line 96, in main > pass_manager.run(run_options) > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_lib/pass_manager.py", line 181, in run > the_pass.run(run_options, stats_keeper) > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_lib/passes.py", line 498, in run > revision_collector.process_file(cvs_file_items) > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_lib/checkout_internal.py", line 616, in process_file > _Sink(self, cvs_file_items), > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_rcsparse/__init__.py", line 44, in parse > return Parser().parse(file, sink) > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_rcsparse/common.py", line 473, in parse > self.parse_rcs_deltatext() > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_rcsparse/common.py", line 446, in parse_rcs_deltatext > self.sink.set_revision_info(revision, log, text) > File "/usr/local/lib64/python2.6/site-packages/cvs2svn_lib/checkout_internal.py", line 496, in set_revision_info > cvs_rev_id = self.cvs_file_items.original_ids[revision] > KeyError: '1.232.2.36.2.2' > > I've turned on verbose logging and took the file in question and tried to > convert just that single file which worked (I just ran passes 1-4). Okay, so > I tried converting the whole CVS module (which is quite large) - it still > works, no error. > > How should I proceed to provide a useful debuggable setup? A bug report would be very welcome, *especially* if this error occurs on trunk but not on the 2.3 branch. The procedure for reporting a bug and generating a test case is described in these FAQ entries: http://cvs2svn.tigris.org/faq.html#reportingbugs http://cvs2svn.tigris.org/faq.html#testcase Be sure to only to this procedure on a *copy* of your repository, as it will be destroyed! The procedure described usually boils your repository down to just a couple of RCS files that exhibit the same error and have been stripped of their revision contents. Then tar up the remaining files and send them to the mailing list along with the other information that is requested in the FAQ. Michael ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2656542 To unsubscribe from this discussion, e-mail: [[email protected]].