~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Andrew Bennetts
  • Date: 2009-07-02 04:51:30 UTC
  • mto: (4476.3.44 inventory-delta)
  • mto: This revision was merged to the branch mainline in revision 4608.
  • Revision ID: andrew.bennetts@canonical.com-20090702045130-7jzx3kdz80sf3f06
RemoveĀ debuggingĀ mutters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
        """
242
242
        graph = self.source.get_graph()
243
243
        parent_map = graph.get_parent_map(revs)
244
 
        mutter('in generate_root_texts: parent_map=%r', parent_map)
245
244
        rev_order = topo_sort(parent_map)
246
245
        rev_id_to_root_id, root_id_to_rev_ids = self._find_root_ids(
247
246
            revs, parent_map, graph)
248
 
        mutter('in generate_root_texts: rev_id_to_root_id=%r',
249
 
                rev_id_to_root_id)
250
247
        root_id_order = [(rev_id_to_root_id[rev_id], rev_id) for rev_id in
251
248
            rev_order]
252
249
        # Guaranteed stable, this groups all the file id operations together
271
268
    # Include direct parents of the revision, but only if they used
272
269
    # the same root_id and are heads.
273
270
    rev_parents = parent_map[rev_id]
274
 
    #mutter('in yield_roots: key=%s rev_parents=%r', key, rev_parents)
275
271
    parent_ids = []
276
272
    for parent_id in rev_parents:
277
273
        if parent_id == NULL_REVISION:
318
314
    for parent_id in parent_ids:
319
315
        if parent_id in heads and parent_id not in selected_ids:
320
316
            selected_ids.append(parent_id)
321
 
    mutter('in yield_roots: heads=%r selected_ids=%r',
322
317
        heads, selected_ids)
323
318
    parent_keys = [
324
319
        (root_id, parent_id) for parent_id in selected_ids]
325
 
    mutter('in yield_roots: parent_keys=%r', parent_keys)
326
320
    return parent_keys