/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/workingtree_4.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:
946
946
            if not all_versioned:
947
947
                raise errors.PathsNotVersionedError(paths)
948
948
        # -- remove redundancy in supplied paths to prevent over-scanning --
949
 
        search_paths = set()
950
 
        for path in paths:
951
 
            other_paths = paths.difference(set([path]))
952
 
            if not osutils.is_inside_any(other_paths, path):
953
 
                # this is a top level path, we must check it.
954
 
                search_paths.add(path)
 
949
        search_paths = osutils.minimum_path_selection(paths)
955
950
        # sketch: 
956
951
        # for all search_indexs in each path at or under each element of
957
952
        # search_paths, if the detail is relocated: add the id, and add the