Telling if two trees are different
jw+debian at jameswestby.net
Thu Oct 23 21:11:15 BST 2008
On Thu, 2008-10-23 at 13:25 -0500, John Arbash Meinel wrote:
> In general you should be able to do:
> for change in tree1.iter_changes(tree2):
> has_change = True
> has_change = False
While reading your reply I remembered TreeDelta,
has_change = tree1.changes_from(tree2).has_changed()
Where the intent is more obvious.
Is that going to be slower as it will generate the whole
delta up front?
More information about the bazaar