~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-13 18:52:58 UTC
  • mfrom: (5222.1.1 no-rootless-commits)
  • Revision ID: pqm@pqm.ubuntu.com-20100513185258-xtx26u4bsjyhat1n
(abentley) CommitBuilder refuses to commit trees with no root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
862
862
        if basis_inv is None:
863
863
            if basis_revision_id == _mod_revision.NULL_REVISION:
864
864
                new_inv = self._create_inv_from_null(delta, new_revision_id)
 
865
                if new_inv.root_id is None:
 
866
                    raise errors.RootMissing()
865
867
                inv_lines = new_inv.to_lines()
866
868
                return self._inventory_add_lines(new_revision_id, parents,
867
869
                    inv_lines, check_content=False), new_inv