[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

cvs2svn.py 0.31.0/7253 failure

From: Roman Neuhauser <neuhauser_at_bellavista.cz>
Date: 2003-10-13 15:58:50 CEST

Hi there,

some time ago I tried to convert our CVS repo using cvs2svn.py, and
got errors. I tried again today, with cvs2svn.py from 0.31.0
($LastChangedRevision: 7253 $), and the error looks suspiciously
familiar:

committing: Wed Jul 31 16:18:59 2002, over 0 seconds
    new revision: 533
committing: Wed Jul 31 18:11:59 2002, over 0 seconds
Traceback (most recent call last):
  File "/usr/local/bin/cvs2svn.py", line 2279, in ?
    main()
  File "/usr/local/bin/cvs2svn.py", line 2275, in main
    convert(ctx, start_pass=start_pass)
  File "/usr/local/bin/cvs2svn.py", line 2147, in convert
    _passes[i](ctx)
  File "/usr/local/bin/cvs2svn.py", line 2082, in pass4
    c.commit(dumper, ctx, sym_tracker)
  File "/usr/local/bin/cvs2svn.py", line 1828, in commit
    svn_rev = dumper.start_revision(props)
  File "/usr/local/bin/cvs2svn.py", line 946, in start_revision
    self.repos_mirror.new_revision()
  File "/usr/local/bin/cvs2svn.py", line 481, in new_revision
    self.stabilize_youngest()
  File "/usr/local/bin/cvs2svn.py", line 513, in stabilize_youngest
    self._stabilize_directory(root_key)
  File "/usr/local/bin/cvs2svn.py", line 501, in _stabilize_directory
    self._stabilize_directory(dir[entry_key])
  File "/usr/local/bin/cvs2svn.py", line 501, in _stabilize_directory
    self._stabilize_directory(dir[entry_key])
  File "/usr/local/bin/cvs2svn.py", line 501, in _stabilize_directory
    self._stabilize_directory(dir[entry_key])
  File "/usr/local/bin/cvs2svn.py", line 501, in _stabilize_directory
    self._stabilize_directory(dir[entry_key])
  File "/usr/local/bin/cvs2svn.py", line 489, in _stabilize_directory
    dir = marshal.loads(self.nodes_db[key])
KeyError: '86b'

the line numbers are slightly off compared to plain 7253 because I have
added some debugging output to the script (the patch is attached).
There's actually several lines of output between the last "committing"
line and the traceback.

xxxx key: 86b
XXXX entry_key: img
XXXX for entry_key in dir.keys():
XXX entry_key: global.php
XXX entry_key: paticka.php
XXX entry_key: hlasuj.php
XXX entry_key: funkce.php
XXX entry_key: reg_status.php
XXX entry_key: Makefile
XXX entry_key: levak.php
XXX entry_key: themes
XXX entry_key: pridat_kos.php
XXX entry_key: zbozi.php
XXX entry_key: tab.php
XXX entry_key: objednavka_mailem.php
XXX entry_key: images
XXX entry_key: czdate.php
XXX entry_key: int_funkce.php
XXX entry_key: favicon.ico
XXX entry_key: messages.po
XXX entry_key: kateg_cesta.php
XXX entry_key: detail.php
XXX entry_key: filtr.php
XXX entry_key: obrazek.php
XXX entry_key: blank.php
XXX entry_key: connect.php
XXX entry_key: archiv_objednavek.php
XXX entry_key: templates
XXX entry_key: zbozi_vypis2.php
XXX entry_key: autent.php
XXX entry_key: soubory
XXX entry_key: vyhledani.php
XXX entry_key: napoveda.php
XXX entry_key: objednavka_detail.php
XXX entry_key: prihlaseni.php
XXX entry_key: objednavka_tisk.php
XXX entry_key: sestavy_vypis1.php
XXX entry_key: zbozi_vypis1.php
XXX entry_key: styly.css
XXX entry_key: kosik.php
XXX entry_key: kredit.php
XXX entry_key: img
XXX entry_key: scripty.js
XXX entry_key: dtb
XXX entry_key: titulka.php
XXX entry_key: index.php
XXX entry_key: reg_adresy.php
XXX entry_key: objednavka.php
XXX entry_key: registrace.php
XXX entry_key: objednavka_odeslana.php
XXX entry_key: levak2.php
XXX entry_key: hlavicka.php
XXXX entry_key: bvobchod2
XXXX for entry_key in dir.keys():
XXX entry_key: bvweb
XXX entry_key: bvobchod
XXX entry_key: bvobchod2
XXX entry_key: mero
XXXX entry_key: BVista
XXXX for entry_key in dir.keys():
XXX entry_key: BVista
XXXX entry_key: branches
XXXX for entry_key in dir.keys():
XXX entry_key: branches
XXX entry_key: trunk
XXXXX rcs_file: /home/roman/cvs/mero/dtb/autent.php,v
XXXXX cvs_rev: 1.1
XXXXX cvs_path: mero/dtb/autent.php
XXXXX props: {'svn:log': 'Tak a ted to nic konecne funguje :)\nModified Files:\n\tglobal.php dtb/frame.php dtb/global.php dtb/hlavicka.php\n \tdtb/levak_kateg.php\nAdded Files:\n\tdtb/autent.php dtb/paticka.php\n', 'svn:author': 'costra', 'svn:date': '2002-07-31T16:11:59.000000Z'}

I'm not sure what's happening.

My first guess was that it chokes on the fact that mero/img is empty in
the repository, and never contained anything: no ,v files, no Attic, no
nothing, but it dies at the same spot after I've removed all empty dirs
from the repository (excpet */Attic|CVSROOT/*). The missing key is the
same (86b), and it fails on the same commit.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Mon Oct 13 16:00:36 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.