What's the deal with MemoryTree?

Justyn Butler justynbutler at googlemail.com
Sat Sep 5 12:33:13 BST 2009


2009/8/25 Aaron Bentley <aaron at aaronbentley.com>:
> Justyn Butler wrote:
>> I have now looked into TransformPreviews and PreviewTrees but after a
>> great deal of trying cannot persuade a PreviewTree committed using a
>> CommitBuilder to associate with a branch.
>>
>> I have been looking mainly at test_commit_preview_tree in
>> test_transform.py (bzrlib 1.17).
<snip>
> Yes, that code lacks the final step: calling Branch.set_last_revision_info()
>
> I recommend using bzr 1.8rc1 or later and calling
> TransformPreview.commit, but if you can't, it at least serves as an
> example of how to do it.

Thanks for your help. I have been able to put something together using
TransformPreview although it is a little hackish because I found that
merging with PreviewTrees seems to produce erratic behaviour in
multi-file trees.

I have reported it as a bug:
http://bugs.launchpad.net/bzr/+bug/424781

Since originally filing the bug I realised that the final tree seems
to contain the multiple merged files, but they are not listed with
list_files.

I find the whole thing quite confusing, if this is expected behaviour
could someone explain how it works?

Thanks,
Justyn.



More information about the bazaar mailing list