Error in conversion when changing keyword handling to "expanded'

Maciek Sakrejda <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <CAH_hXRa1XLu-230MRifF7Wp+kvBxcx76crUDyXmrpW2ORgyJ9g@mail.gmail.com>
Hi,

I'm working on converting the PostgreSQL JDBC CVS repository to git
using cvs2git, and I ran into the following error running on trunk
(r5367):

----- pass 4 (FilterSymbolsPass) -----
Filtering out excluded symbols and summarizing items...
Traceback (most recent call last):
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2git", line 70, in <module>
    git_main(os.path.basename(sys.argv[0]), sys.argv[1:])
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/main.py",
line 119, in git_main
    main(progname, run_options, pass_manager)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/main.py",
line 96, in main
    pass_manager.run(run_options)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/pass_manager.py",
line 181, in run
    the_pass.run(run_options, stats_keeper)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/passes.py",
line 498, in run
    revision_collector.process_file(cvs_file_items)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/git_revision_collector.py",
line 71, in process_file
    self._process_revision(cvs_rev)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/git_revision_collector.py",
line 49, in _process_revision
    fulltext = self.revision_reader.get_content(cvs_rev)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/abstract_rcs_revision_manager.py",
line 84, in get_content
    data = expand_keywords(data, cvs_rev)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/keyword_expander.py",
line 118, in expand_keywords
    return _kwo_re.sub(_KeywordExpander(cvs_rev), text)
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/keyword_expander.py",
line 56, in __call__
    match.group(1), getattr(self, match.group(1).lower())(),
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/keyword_expander.py",
line 67, in header
    self.source(), self.cvs_rev.rev, self.date(), self.author(),
  File "/home/maciek/jdbc-to-git/cvs2svn-trunk/cvs2svn_lib/keyword_expander.py",
line 60, in author
    return Ctx()._metadata_db[self.cvs_rev.metadata_id].original_author
AttributeError: Ctx instance has no attribute '_metadata_db'

The conversion script worked fine until I changed the
KeywordHandlingPropertySetter from 'collapsed' to 'expanded'. Any
thoughts? I dug into this a little bit and it looks like it may be due
to the fact that the single-underscore-prefixed properties are
temporary, but I have no idea what the solution would be. I can
provide full repro steps if the stack trace is not enough.

Thanks,
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2910857

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.