Changeset 1088 in tailor


Ignore:
Timestamp:
03/28/06 11:24:56 (7 years ago)
Author:
Lalo Martins <lalo.martins@…>
Hash name:
20060328092456-b3daa-2e0c24c5fb1ae447e1c6ef7598d708ca1ed1d27a
Message:

bzr API: tree inventory

The bzr API changed again; now the Branch object doesn't provide a
get_inventory() method anymore, since conceptually, branches don't
have inventories (branches have trees, which have inventories).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/bzr.py

    r1049 r1088  
    132132        else: 
    133133            new_entries = [] 
    134             inv = self._b.get_inventory(self._b.last_revision()) 
    135             diff = compare_trees(self._b.revision_tree(last_revision), 
    136                                 self._b.working_tree()) 
     134            basis_tree = self._b.basis_tree() 
     135            inv = basis_tree.inventory 
     136            diff = compare_trees(basis_tree, self._b.working_tree()) 
    137137            added = ([new[0] for new in diff.added] + 
    138138                     [renamed[1] for renamed in diff.renamed]) 
Note: See TracChangeset for help on using the changeset viewer.