ValueError: Cannot have multiple roots. in rich root repositories when using Tree.revert()

Ali Sabil ali.sabil at gmail.com
Thu Feb 19 23:03:50 GMT 2009


Hi again,

It seems like I managed to fix it by calling
tree_to.set_root_id(tree_from.get_root_id()) I am not sure if this is the
correct fix, but it does works at least.

cheers,

--
Ali

On Thu, Feb 19, 2009 at 11:27 PM, Ali Sabil <ali.sabil at gmail.com> wrote:

> Hi all,
>
> I am trying to write a very simple plugin that generate a new branch from a
> source branch, applying a set of transforms to achieve the same end result
> as git-filter-branch. I am working on this plugin mainly to get a better
> understanding of the bzrlib APIs, and I hope to be able to port the feature
> to bzr-rebase later.
>
> The issue is that I get a "ValueError: Cannot have multiple roots."
> exception when running the filter-branch command inside a rich-root
> repository, while filter-branch seems to work for the non rich-root case.
> The source code for the plugin can be found in [1], and a traceback can be
> found in [2].
>
> Cheers,
>
> [1]
> http://bazaar.launchpad.net/~asabil/%2Bjunk/bzr-filter-branch/annotate/2?file_id=__init__.py-20090127233409-qypu6vpum4beee00-1<http://bazaar.launchpad.net/%7Easabil/%2Bjunk/bzr-filter-branch/annotate/2?file_id=__init__.py-20090127233409-qypu6vpum4beee00-1>
> [2] http://pastebin.ca/1341535
>
> --
> Ali
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090220/4b5b738e/attachment.htm 


More information about the bazaar mailing list