Error occured while trying to commit the first revision of my local project (~300mb) in bazaar 1.7.1 (the same was in 1.3).
Output:
(...)
added www/statystyka/usage_200810.html
added www/statystyka/webalizer.current
added www/statystyka/webalizer.hist
bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit <bzrlib.knit.KnitVersionedFiles object at 0x87e1a2c> corrupt: incorrect number of lines 17800 != 17789 for version {mati@mati-desktop-20081010222145-mrjuvru4o34eqdv5} ['<inventory format="5" revision_id="mati@mati-desktop-20081010222145-mrjuvru4o34eqdv5">\n', '<file executable="yes" file_id="biznesplan.gnumeric-20081010220641-8knopd2qshq2xb7x-1" name="Biznesplan.gnumeric" revision="mati@mati-desktop-20081010222145-mrjuvru4o34eqdv5" text_sha1="6653b88c840f2e9badfb02d3fab70f6c1225b57b" text_size="2935" />\n', (... lots of these ...), '<file file_id="test.php-20081010220641-8knopd2qshq2xb7x-121" name="test.php" parent_id="www-20081010220641-8knopd2qshq2xb7x-10" revision="mati@mati-desktop-20081010222145-mrjuvru4o34eqdv5" text_sha1="3fbddfd9ae27c8194633b73f5b6fa3656a0bc9b2" text_size="158" />\n', '</inventory>\n']
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2321, in run
exclude=safe_relpath_files(tree, exclude))
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 242, in commit
result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 197, in commit
revprops=revprops, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 384, in commit
self.rev_id = self.builder.commit(self.message)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 140, in commit
self.new_inventory, self._config)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 616, in add_revision
rev.inventory_sha1 = self.inventories.get_sha1s([key])[key]
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1243, in get_sha1s
record_map = self._get_record_map(missing, allow_missing=True)
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1116, in _get_record_map
self._read_records_iter(records):
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1564, in _read_records_iter
content, digest = self._parse_record(key[-1], data)
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1492, in _parse_record
rec, record_contents = self._parse_record_unchecked(data)
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1531, in _parse_record_unchecked
rec[1], record_contents))
bzr 1.7.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'Z wgranym, ale nieu\xc5\xbcywanym minified. Wy\xc5\x9bwietlanie drzewka w pe\xc5\x82nej wersji, z pustymi kategoriami.']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'pl_PL.UTF-8'
plugins:
gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** 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.
It has different traceback than #160081, so probably that's not a dupe.
Still an issue in 1.8 - can't commit my first revision.