<div dir="ltr"><div>Hi All</div><div><br></div><div>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:</div>
<div>- Windows Vista</div><div>- Bazaar, started at 1.5, upgraded to 1.6 and upgraded again to <a href="http://1.6.1.">1.6.1.</a></div><div><br></div><div>Branches in:</div><div>bzr/main<br></div><div>bzr/0.1/initial</div>
<div><br></div><div>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.</div><div>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.</div>
<div>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). <br>
</div><div></div><div><br></div><div>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 <a href="http://1.6.1.">1.6.1.</a> 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:</div>
<div>- What have I done wrong and what is the correct way of approaching my bzr-svn setup</div><div>- 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</div>
<div>- Any good advice for situations like this for the next time?</div><div><br></div><div>Thanks</div><div><br></div><div>Patrick</div><div><br></div><div>---------------------------------------------------------- ERROR MESSAGE + STACK TRACE BELOW ---------------------------------------------------------------------------</div>
<div><div><br></div><div>D:\repository\bzr>bzr checkout svn://hagar/d2007/BRANCHES/pac-alpha<br></div><div>bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit _KnitGraphIndex(CombinedGraphIndex(GraphIndex('file:///D:/repository/bzr/pac-alpha/.bzr/repository/indices</div>
<div>/da23728e57ad5429e99af0e6649fcadc.tix'))) corrupt: inconsistent details in add_records: ('N81781199 8099', ((('3@21e94437-b03d-9b40-b576-d5a0c3005cfc:</div><div>BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd', 'patrickv@touchcut.com-20080905023057-rrt2ad6k5ueg5pej'),), ())) ('N83017952 1</div>
<div>29', ((('3@21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd', 'patrickv@touchcut.com-2008090</div><div>8042923-rk9xyl3fdhzstsvh'),), (('3@21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd', 'patri</div>
<div>ckv@touchcut.com-20080908042923-rk9xyl3fdhzstsvh'),)))</div><div><br></div><div>Traceback (most recent call last):</div><div> File "bzrlib\commands.pyo", line 857, in run_bzr_catch_errors</div><div> File "bzrlib\commands.pyo", line 797, in run_bzr</div>
<div> File "bzrlib\commands.pyo", line 499, in run_argv_aliases</div><div> File "bzrlib\builtins.pyo", line 957, in run</div><div> File "C:/tools/Bazaar/plugins\svn\branch.py", line 223, in create_checkout</div>
<div> File "C:/tools/Bazaar/plugins\svn\branch.py", line 169, in _create_heavyweight_checkout</div><div> File "bzrlib\decorators.pyo", line 192, in write_locked</div><div> File "bzrlib\branch.pyo", line 1931, in pull</div>
<div> File "bzrlib\decorators.pyo", line 192, in write_locked</div><div> File "bzrlib\branch.pyo", line 1736, in pull</div><div> File "bzrlib\decorators.pyo", line 192, in write_locked</div>
<div> File "bzrlib\branch.pyo", line 517, in update_revisions</div><div> File "bzrlib\decorators.pyo", line 192, in write_locked</div><div> File "bzrlib\branch.pyo", line 279, in fetch</div>
<div> File "bzrlib\repository.pyo", line 975, in fetch</div><div> File "C:/tools/Bazaar/plugins\svn\fetch.py", line 824, in fetch</div><div> File "C:/tools/Bazaar/plugins\svn\fetch.py", line 769, in _fetch_switch</div>
<div> File "C:/tools/Bazaar/plugins\svn\fetch.py", line 596, in report_inventory_contents</div><div> File "C:/tools/Bazaar/plugins\svn\fetch.py", line 200, in close</div><div> File "C:/tools/Bazaar/plugins\svn\fetch.py", line 344, in _close</div>
<div> File "bzrlib\knit.pyo", line 748, in add_lines</div><div> File "bzrlib\knit.pyo", line 831, in _add</div><div> File "bzrlib\knit.pyo", line 2103, in add_records</div><div>KnitCorrupt: Knit _KnitGraphIndex(CombinedGraphIndex(GraphIndex('file:///D:/repository/bzr/pac-alpha/.bzr/repository/indices/da23728e57ad5429e99af0e66</div>
<div>49fcadc.tix'))) corrupt: inconsistent details in add_records: ('N81781199 8099', ((('3@21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riema</div><div>nn%2FPAC%2Fdesign%2FAutomation%20design.csd', 'patrickv@touchcut.com-20080905023057-rrt2ad6k5ueg5pej'),), ())) ('N83017952 129', ((('3@21e94437-b03d-9</div>
<div>b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd', 'patrickv@touchcut.com-20080908042923-rk9xyl3fdhzstsvh')</div><div>,), (('3@21e94437-b03d-9b40-b576-d5a0c3005cfc:BRANCHES%2Fpac-alpha:Riemann%2FPAC%2Fdesign%2FAutomation%20design.csd', 'patrickv@touchcut.com-200809080</div>
<div>42923-rk9xyl3fdhzstsvh'),)))</div><div><br></div><div>bzr 1.6.1 on python 2.5.2 (win32)</div><div>arguments: ['bzr', 'checkout', 'svn://hagar/d2007/BRANCHES/pac-alpha']</div><div>encoding: 'cp1252', fsenc: 'mbcs', lang: None</div>
<div>plugins:</div><div> bzrtools C:\tools\Bazaar\plugins\bzrtools [1.6.0]</div><div> extmerge C:\tools\Bazaar\plugins\extmerge [unknown]</div><div> gtk C:\tools\Bazaar\plugins\gtk [0.94.0]</div>
<div> launchpad C:\tools\Bazaar\plugins\launchpad [unknown]</div><div> qbzr C:\tools\Bazaar\plugins\qbzr [0.9.3]</div><div> svn C:\tools\Bazaar\plugins\svn [0.4.11]</div><div>
*** Bazaar has encountered an internal error.</div><div> Please report a bug at <a href="https://bugs.launchpad.net/bzr/+filebug">https://bugs.launchpad.net/bzr/+filebug</a></div><div> including this traceback, and a description of what you</div>
<div> were doing when the error occurred.</div><div><br></div></div></div>