[attn aaron] differences between RevisionTree and WorkingTree

Robert Collins robertc at robertcollins.net
Thu Jul 20 13:59:56 BST 2006


Heres an interesting little quirk - 

if you make a working tree with no content:
tree = self.make_branch_and_tree('.')

and a RevisionTree from it 
revid = tree.commit('foo')
rev_tree = tree.branch.repository.revision_tree(revid)

print list(iter(tree))
[]
print list(iter(rev_tree))
['TREE_ROOT']


I'd like to make this consistent in some manner - Aaron, what would work
best with your tree root work ?

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060720/edeae16b/attachment.pgp 


More information about the bazaar mailing list