Is this user error or...

Andrew Bennetts andrew.bennetts at
Thu Jan 8 23:12:53 GMT 2009

Russel Winder wrote:
> I have a shared repository with a branch in it.  I branch the branch and
> make some amendments.  Everything seems hunky dory.  I then try and push
> the newly amended branch to a copy on Launchpad and I get the rather
> frightening output below.  I am using Bazaar 1.10 locally.
> |> bzr push --overwrite
> Using saved push location: bzr+ssh://
> bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Newly created pack file <bzrlib.repofmt.pack_repo.NewPack object at 0x92c668c> has delta references to items not in its repository:
> {'texts': [('1115 at 004c2c75-fc45-0410-b1a2-da8352e2331b:gradle-core%2Ftrunk:src%2Fsamples%2Fgroovyproject%2Ftestproject%2Fbuild.gradle',

This looks like a stacking bug that was fixed in 1.10 — what version of bzr did
you originally create that branch with?  Older versions of bzr in some
situations would create stacked branches incorrectly (with a stacked repository
that intentionally omits most of the data, but then with a non-stacked branch.
The initial push works, but any subsequent push that tries to record a change to
a file not modified in the original delta vs. the stacked-on repository fails
with the error you see).  <>
reports that that branch is format 6 (not stacked).

If you delete that branch (or use a tool like lftp to recursively delete the
remote .bzr directory) and recreate it with 1.10, the problem should be fixed
(and stay fixed).


More information about the bazaar mailing list