bzr repositories are corrupted

Bug #1190375 reported by dlh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Armagetron Advanced
Confirmed
Undecided
Unassigned

Bug Description

There is something wrong with our 0.4 and trunk repositories.

$ bzr check
Checking working tree at '/Users/me/Projects/OSS/armagetronad/bzr/0.4-armagetronad-work'.
Checking branch at 'file:///Users/me/Projects/OSS/armagetronad/bzr/0.4-armagetronad-work/'.
Checking repository at 'file:///Users/me/Projects/OSS/armagetronad/bzr/0.4-armagetronad-work/'.
bzr: ERROR: An inconsistent delta was supplied involving '<unknown>', '4612@7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Ftrunk%2Farmagetronad:language' reason: Parent not in inventory.

Bzr bug #855155 looks related.

Jip / ohloh.net discovered this issue. You can see the reply Jip received from them at <http://unk.me/~jip/ohloh.txt>.

I can't reproduce the issue ohloh is having with our svn repo.

Changed in armagetronad:
status: New → Confirmed
dlh (dlh)
summary: - Errors with 0.4 and trunk repositories
+ bzr repositories are corrupted
Revision history for this message
dlh (dlh) wrote :

(Note: this is on the trunk branch)

The error seems to be from revno 795.1.44. Heres the entry object from where the error occurs (Inventory.add, inventory.py):

    InventoryFile(
        '4612@7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Ftrunk%2Farmagetronad:language%2F.cvsignore',
        '.cvsignore',
        parent_id='4612@7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Ftrunk%2Farmagetronad:language',
        sha1='5249a6c824be1f1ff2ff1e26f37cac2146fd71dc',
        len=25,
        revision=svn-v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs:7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Ftrunk%2Farmagetronad:4612
    )

To reproduce, run "bzr log -v -n0 -r 795..796"

Revision history for this message
David Brandes (brandesign) wrote :

It seems that something went wrong with removing language/.cvsignore

Maybe this http://osdir.com/ml/bazaar/2009-04/msg01667.html and this https://lists.ubuntu.com/archives/bazaar/2009q4/063845.html is related?

Revision history for this message
Alex Johnson (alex-johnson) wrote :
Download full text (4.0 KiB)

version: 2.7.0dev1

I can replicate this bug with the following commands:

$ bzr branch https://code.launchpad.net/~armagetronad-dev/armagetronad/0.4-armagetronad-work
Branched 1579 revisions.
$ cd 0.4-armagetronad-work/
$ bzr log --include-merged -v > /dev/null
bzr: ERROR: An inconsistent delta was supplied involving '<unknown>', '4612@7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Ftrunk%2Farmagetronad:language'
reason: Parent not in inventory.

The two suggested links do not seem to be related. They seem to be about moved files, while ~/.bzr.log for the above command does not show any information on moved files.

0.039 bazaar version: 2.7.0dev1
0.039 bzr arguments: [u'log', u'--include-merged', u'-v']
0.041 looking for plugins in ~/.bazaar/plugins
0.043 looking for plugins in /usr/lib/python2.7/dist-packages/bzrlib/plugins
0.051 encoding stdout as sys.stdin encoding 'UTF-8'
0.068 encoding stdout as sys.stdin encoding 'UTF-8'
38.695 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
38.697 Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 2893, in run
    Logger(b, rqst).show(lf)
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 382, in show
    self._show_body(lf)
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 411, in _show_body
    for lr in generator.iter_log_revisions():
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 451, in iter_log_revisions
    for revs in revision_iterator:
  File "/usr/lib/python2.7/dist-packages/bzrlib/log.py", line 942, in _generate_deltas
    for rev, delta in izip(revs, deltas):
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 878, in get_deltas_for_revisions
    t in self.revision_trees(required_trees))
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 877, in <genexpr>
    trees = dict((t.get_revision_id(), t) for
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1849, in revision_trees
    for inv in inventories:
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1750, in iter_inventories
    for inv, revid in self._iter_inventories(revision_ids, ordering):
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1762, in _iter_inventories
    yi...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.