RootMissing error on branch

Bug #688459 reported by Gary van der Merwe
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
Fix Released
Low
Jelmer Vernooij
Launchpad itself
Fix Released
Medium
Jelmer Vernooij

Bug Description

I got a RootMissing error when I tried to branch a hg branch. Here is a copy of the terminal output:

~ $ hg clone http://hg.3aims.com/public/AuthKit
real URL is https://hg.3aims.com/public/AuthKit
destination directory: AuthKit
requesting all changes
adding changesets
adding manifests
adding file changes
added 183 changesets with 1912 changes to 1351 files
updating to branch default
1049 files updated, 0 files merged, 0 files removed, 0 files unresolved
~ $ bzr branch AuthKit AuthKit-bzr
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: bzrlib.errors.RootMissing: The root entry of a tree must be the first entry supplied to record_entry_contents.

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, 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/builtins.py", line 1246, in run
    source_branch=br_from)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1259, in sprout
    result_repo.fetch(source_repository, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1740, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/hg/fetch.py", line 647, in fetch
    self.addchangegroup(cg, mapping)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/hg/fetch.py", line 526, in addchangegroup
    self._add_inventories(todo, mapping, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/hg/fetch.py", line 386, in _add_inventories
    basis_inv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 866, in add_inventory_by_delta
    raise errors.RootMissing()
RootMissing: The root entry of a tree must be the first entry supplied to record_entry_contents.

bzr 2.2.1 on python 2.6.6 (Linux-2.6.35-23-generic-pae-i686-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'branch', 'AuthKit', 'AuthKit-bzr']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.utf8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.1]
  bookmarks /home/garyvdm/.bazaar/plugins/bookmarks [unknown]
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [2.2.0]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  explorer /home/garyvdm/.bazaar/plugins/explorer [1.1.0dev]
  extmerge /home/garyvdm/.bazaar/plugins/extmerge [unknown]
  fastimport /usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.9.0dev]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.5.2]
  hg /usr/lib/python2.6/dist-packages/bzrlib/plugins/hg [0.2.0dev]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.1]
  loom /usr/lib/python2.6/dist-packages/bzrlib/plugins/loom [2.1.0]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.1]
  pqm /usr/lib/python2.6/dist-packages/bzrlib/plugins/pqm [1.4.0dev]
  qbzr /home/garyvdm/.bazaar/plugins/qbzr [0.20.0dev1]
  rewrite /home/garyvdm/.bazaar/plugins/rewrite [0.6.1dev]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [0.1.0dev]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.4]
  upload /home/garyvdm/.bazaar/plugins/upload [1.0.0dev]
  vimdiff /home/garyvdm/.bazaar/plugins/vimdiff [unknown]

*** 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.

Tags: qa-ok

Related branches

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

I'm having the same problem trying to do a VCS import for pyskein - http://launchpadlibrarian.net/61021231/pyskein-pyskein-trunk.log

Changed in bzr-hg:
status: New → Confirmed
Jelmer Vernooij (jelmer)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
importance: Undecided → Low
Changed in launchpad:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → In Progress
Changed in bzr-hg:
status: Confirmed → Fix Committed
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
milestone: none → 0.2
Revision history for this message
shuerhaaken (shkn) wrote :

Still not working for imports from google code.
See http://launchpadlibrarian.net/69340095/shkn-xnoise-default.log

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This has only been fixed in bzr-hg, it hasn't been deployed on Launchpad yet.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
milestone: 0.2 → 0.1.1
status: Fix Committed → Fix Released
Revision history for this message
shuerhaaken (shkn) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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