/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/inventory_implementations/basics.py

  • Committer: Robert Collins
  • Date: 2007-09-20 07:03:33 UTC
  • mto: (2843.1.1 ianc-integration2)
  • mto: This revision was merged to the branch mainline in revision 2844.
  • Revision ID: robertc@robertcollins.net-20070920070333-eedxrxidkignx4i1
* Partial commits are now approximately 40% faster by walking over the
  unselected current tree more efficiently. (Robert Collins)

* New method ``bzrlib.osutils.minimum_path_selection`` useful for removing
  duplication from user input, when a user mentions both a path and an item
  contained within that path. (Robert Collins)

* New parameter yield_parents on ``Inventory.iter_entries_by_dir`` which
  causes the parents of a selected id to be returned recursively, so all the
  paths from the root down to each element of selected_file_ids are
  returned. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
            ], [(path, ie.file_id) for path, ie in inv.iter_entries_by_dir(
203
203
                specific_file_ids=('bye-id',))])
204
204
 
 
205
        self.assertEqual([
 
206
            ('', 'tree-root'),
 
207
            ('src', 'src-id'),
 
208
            ('src/bye.c', 'bye-id'),
 
209
            ], [(path, ie.file_id) for path, ie in inv.iter_entries_by_dir(
 
210
                specific_file_ids=('bye-id',), yield_parents=True)])
 
211
 
205
212
    def test_add_recursive(self):
206
213
        parent = InventoryDirectory('src-id', 'src', 'tree-root')
207
214
        child = InventoryFile('hello-id', 'hello.c', 'src-id')