'baz-import-branch' succeeds, but resulting branch is b0rked (solution)

Dan Lipsitt danlipsitt at gmail.com
Wed Jun 6 21:33:33 BST 2007


I've had the same issue where revisions from a baz import are "not
present in inventory." I solved it by making sure that I had
registered all the ancestors of the baz branch I was importing. Use
the 'baz register-archive' command to do this.

Dan

On 11/2/06, Ben Finney <ben at benfinney.id.au> wrote:
> Howdy all,
>
> Yesterday I did the following successful 'baz-import-branch' on a
> branch with some 200+ revisions:
>
> =====
> $ bzr baz-import-branch its-reporting.release-1.09.1/ benf at cyber.com.au--jobs-2006/its-reporting--release--1.09.1
> importing benf at cyber.com.au--jobs-2006/its-reporting--release--1.09.1 into /home/benf/Projects/its-aus/its-reporting.release-1.09.1
> replaced 1 control characters in message
> Cleaning up
> Import complete.
> =====
>
> However, attempts to actually use the resulting branch failed:
>
> =====
> $ cd its-reporting.release-1.09.1/
> $ bzr push sftp://bzr@fs/~/client/its-aus/report-system/its-reporting.release-1.09.1/
> bzr: ERROR: Revision {Arch-1:benf at cyber.com.au--jobs-2005%its-reporting--temp--0.2--patch-1} not present in inventory.
>
> $ cd ..
> $ bzr branch its-reporting.release-1.09.1/ its-reporting.foo-1.09.1/
> bzr: ERROR: Revision {Arch-1:benf at cyber.com.au--jobs-2005%its-reporting--temp--0.2--patch-1} not present in inventory.
> =====
>
> I'm not sure how to interpret the 'check' output, but it seems okay:
>
> =====
> $ bzr check
> checked branch file:///home/benf/Projects/its-aus/its-reporting.release-1.09.1/ format Bazaar-NG Metadir branch format 5
> checked repository <bzrlib.transport.local.LocalTransport url=file:///home/benf/Projects/its-aus/its-reporting.release-1.09.1/> format <RepositoryFormatKnit1>
>    235 revisions
>   1246 unique file texts
>  77415 repeated file texts
>    699 weaves
>     18 ghost revisions
>     18 revisions missing parents in ancestry
> =====
>
> What can I do to find out why this successfully-imported branch is
> failing? Obviously, I also want to be able to use it with bzr.
>
> Versions:
>
> =====
> $ bzr --version | head -n 1
> Bazaar (bzr) 0.10.0
> $ aptitude show pybaz | grep Version:
> Version: 1.5pre1-3
> $ aptitude show bzrtools | grep Version:
> Version: 0.10.0-2
> =====
>
> --
>  \         "Dad always thought laughter was the best medicine, which I |
>   `\        guess is why several of us died of tuberculosis."  -- Jack |
> _o__)                                                           Handey |
> Ben Finney
>
>
>



More information about the bazaar mailing list