bzr fast-import --import-marks

Jelmer Vernooij jelmer at samba.org
Thu Mar 10 02:00:18 UTC 2011


On Wed, 2011-03-09 at 16:22 +0200, Eli Zaretskii wrote:
> "bzr fast-export-from-git" produces, in addition to a .fi stream, also
> a .marks file, but if I pass that file to "bzr fast-import" via the
> "--import-marks" option, bzr crashes:
> 
>   ABORT: exception occurred processing commit :2
>   bzr: ERROR: bzrlib.errors.NoSuchRevision: CHKInventoryRepository('file:///D:/gnu/bzr/foo/.bzr/repository/') has no revision ('9432121c2ddc629db098b8d194275e0f8a1ce270',)
> 
> This is triggered by the following line in the .marks file:
> 
>   :2 9432121c2ddc629db098b8d194275e0f8a1ce270
> 
> From the error message, it sounds like bzr tries to process this as if
> it were a commit?
> 
> Is this a bug in fastimport, a cockpit error on my part, or some
> problem with the marks file itself?
This is the correct behaviour. A marks file generated by git fast-export
should be used again with git fast-export itself, not with bzr
fast-import/fast-export. 

> And btw, what is this file used for in the resulting bzr repository?
> That is, what is the purpose of the --import-marks option? what
> information it adds to the repository?
It's used to generate incremental imports. The marks file allows the
fastexporter/fastimporter to refer to previously processed revisions by
their mark.

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20110310/24dc246b/attachment.pgp>


More information about the bazaar mailing list