revision_trees with no parent

Sandy Dunlop sandy at sorn.net
Fri Dec 5 18:38:44 GMT 2008


On Fri, Dec 5, 2008 at 5:25 AM, John Arbash Meinel
<john at arbash-meinel.com> wrote:
> empty_tree = branch.repository.revision_tree(NULL_REVISION)
>
> It is a bit of a quirk, but "revision_trees()" doesn't allow you to pass
> NULL_REVISION. But
>
> self.rev_tree.changes_from(empty_tree)
>
> Should do what you want.

Thank you. That worked perfectly. I should have looked at the
Repository API before asking that :-)

s.



More information about the bazaar mailing list