bzr-svn fails to import

Patrick van der Velde petrikvandervelde at gmail.com
Tue Sep 9 02:10:26 BST 2008


Hi All

I've just had bazaar fail on me with a KnitCorrupt error while trying to
update one of my branches. I've been trying to fix the problem but nothing I
do seems to work. The layout of my setup is:
- Windows Vista
- Bazaar, started at 1.5, upgraded to 1.6 and upgraded again to 1.6.1.

Branches in:
bzr/main
bzr/0.1/initial

The bzr directory was initialized by bzr 1.5 using the init-repo
--rich-root-pack command. There are no sources in this directory, just the
bzr branches.
The main directory contained the original svn checkout which was done by
calling bzr checkout with the subversion branch URL. The original checkout
worked fine and there haven't been any problems with checkouts and commits
until today.
The 0.1/initial directory was branched from the main directory. This
directory was my working directory. Once a stable state was reached the
changes were merged into the main directory and committed to both bzr and
svn. Again no problems were found here except for some minor issues when
trying to perform a merge with binary files and some problems that were
caused when performing a merge that somehow created 2 directories with the
same name but different capitalization (PAC vs pac).

Today I committed some revisions to subversion and after that performed a
merge between the subversion trunk and the subversion branch (both ways to
propagate changes). When I called bzr update this failed with a KnitCorrupt
message. Following this I tried to do a nearly clean checkout (remove all
the source directories, but keep the .bzr directory in the main directory).
This didn't work unfortunately. I then upgraded to Bzr 1.6.1. and upgraded
the repositories as well (I did not upgrade the repositories when upgrading
to 1.6 originally). The upgrade didn't help so I cleared out the directories
(except for the bzr directory) and tried to do a completely new checkout.
After about an hour this checkout failed with the error mentioned below. Now
obviously I've made a ton of mistakes here (i've only started using bzr a
while back) so my questions are:
- What have I done wrong and what is the correct way of approaching my
bzr-svn setup
- Is there a way to get a good checkout from svn with bzr? We only have a
few revisions in the svn repository as we just moved to subversion from svn
but the initial checkout still takes about an hour
- Any good advice for situations like this for the next time?

Thanks

Patrick

---------------------------------------------------------- ERROR MESSAGE +
STACK TRACE BELOW
---------------------------------------------------------------------------

D:\repository\bzr>bzr checkout svn://hagar/d2007/BRANCHES/pac-alpha
bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit
_KnitGraphIndex(CombinedGraphIndex(GraphIndex('file:///D:/repository/bzr/pac-alpha/.bzr/repository/indices
/da23728e57ad5429e99af0e6649fcadc.tix'))) corrupt: inconsistent details in
add_records: ('N81781199 8099', ((('3 at 21e94437-b03d-9b40-b576-d5a0c3005cfc:
BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd',
'patrickv at touchcut.com-20080905023057-rrt2ad6k5ueg5pej'),), ())) ('N83017952
1
29', ((('3 at 21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd',
'patrickv at touchcut.com-2008090
8042923-rk9xyl3fdhzstsvh'),),
(('3 at 21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd',
'patri
ckv at touchcut.com-20080908042923-rk9xyl3fdhzstsvh'),)))

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 857, in run_bzr_catch_errors
  File "bzrlib\commands.pyo", line 797, in run_bzr
  File "bzrlib\commands.pyo", line 499, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 957, in run
  File "C:/tools/Bazaar/plugins\svn\branch.py", line 223, in create_checkout
  File "C:/tools/Bazaar/plugins\svn\branch.py", line 169, in
_create_heavyweight_checkout
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 1931, in pull
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 1736, in pull
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 517, in update_revisions
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 279, in fetch
  File "bzrlib\repository.pyo", line 975, in fetch
  File "C:/tools/Bazaar/plugins\svn\fetch.py", line 824, in fetch
  File "C:/tools/Bazaar/plugins\svn\fetch.py", line 769, in _fetch_switch
  File "C:/tools/Bazaar/plugins\svn\fetch.py", line 596, in
report_inventory_contents
  File "C:/tools/Bazaar/plugins\svn\fetch.py", line 200, in close
  File "C:/tools/Bazaar/plugins\svn\fetch.py", line 344, in _close
  File "bzrlib\knit.pyo", line 748, in add_lines
  File "bzrlib\knit.pyo", line 831, in _add
  File "bzrlib\knit.pyo", line 2103, in add_records
KnitCorrupt: Knit
_KnitGraphIndex(CombinedGraphIndex(GraphIndex('file:///D:/repository/bzr/pac-alpha/.bzr/repository/indices/da23728e57ad5429e99af0e66
49fcadc.tix'))) corrupt: inconsistent details in add_records: ('N81781199
8099', ((('3 at 21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riema
nn%2FPAC%2Fdesign%2FAutomation%20design.csd',
'patrickv at touchcut.com-20080905023057-rrt2ad6k5ueg5pej'),), ())) ('N83017952
129', ((('3 at 21e94437-b03d-9
b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd',
'patrickv at touchcut.com-20080908042923-rk9xyl3fdhzstsvh')
,), (('3 at 21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd',
'patrickv at touchcut.com-200809080
42923-rk9xyl3fdhzstsvh'),)))

bzr 1.6.1 on python 2.5.2 (win32)
arguments: ['bzr', 'checkout', 'svn://hagar/d2007/BRANCHES/pac-alpha']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools             C:\tools\Bazaar\plugins\bzrtools [1.6.0]
  extmerge             C:\tools\Bazaar\plugins\extmerge [unknown]
  gtk                  C:\tools\Bazaar\plugins\gtk [0.94.0]
  launchpad            C:\tools\Bazaar\plugins\launchpad [unknown]
  qbzr                 C:\tools\Bazaar\plugins\qbzr [0.9.3]
  svn                  C:\tools\Bazaar\plugins\svn [0.4.11]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20080909/94b49511/attachment.htm 


More information about the bazaar mailing list