~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-05 14:12:23 UTC
  • mto: This revision was merged to the branch mainline in revision 6348.
  • Revision ID: jelmer@samba.org-20111205141223-8qxae4h37satlzgq
Move more functionality to vf_search.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1147
1147
                [parents_provider, other_repository._make_parents_provider()])
1148
1148
        return graph.Graph(parents_provider)
1149
1149
 
1150
 
    def revision_ids_to_search_result(self, result_set):
1151
 
        """Convert a set of revision ids to a graph SearchResult."""
1152
 
        result_parents = set()
1153
 
        for parents in self.get_graph().get_parent_map(
1154
 
            result_set).itervalues():
1155
 
            result_parents.update(parents)
1156
 
        included_keys = result_set.intersection(result_parents)
1157
 
        start_keys = result_set.difference(included_keys)
1158
 
        exclude_keys = result_parents.difference(result_set)
1159
 
        result = graph.SearchResult(start_keys, exclude_keys,
1160
 
            len(result_set), result_set)
1161
 
        return result
1162
 
 
1163
1150
    @needs_write_lock
1164
1151
    def set_make_working_trees(self, new_value):
1165
1152
        """Set the policy flag for making working trees when creating branches.