AssertionError: Working Tree's last revision not in branch.revision_history [running "bzr version-info --all" on an empty repository]

Bug #849215 reported by Ben Harris
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

After creating a new repository with "bzr init", running "bzr version-info --all" causes an AssertionError. I appreciate that I probably can't expect any useful output here, but an assertion failure seems rude.

I'm running the Debian bzr 2.3.1-2 package. If I should report this through Debian instead let me know.

wraith:/tmp$ mkdir foo
wraith:/tmp$ cd foo
wraith:/tmp/foo$ bzr init
Created a standalone tree (format: 2a)
wraith:/tmp/foo$ bzr version-info --all
bzr: ERROR: exceptions.AssertionError: Working Tree's last revision not in branch.revision_history

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 688, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cmd_version_info.py", line 118, in run
    builder.generate(self.outf)
  File "/usr/lib/python2.6/dist-packages/bzrlib/version_info_formats/format_rio.py", line 63, in generate
    self._extract_revision_history()
  File "/usr/lib/python2.6/dist-packages/bzrlib/version_info_formats/__init__.py", line 142, in _extract_revision_history
    "Working Tree's last revision not in branch.revision_history")
AssertionError: Working Tree's last revision not in branch.revision_history

bzr 2.3.1 on python 2.6.7 (Linux-3.0.0-1-686-pae-i686-with-debian-wheezy-sid)
arguments: ['/usr/bin/bzr', 'version-info', '--all']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.3.1]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.3.1]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.6.2]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.101.0dev]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.3.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.3.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.3.1]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.5dev]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Triaged
importance: Undecided → Medium
tags: added: easy
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.