~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Martin Pool
  • Date: 2010-01-29 10:36:23 UTC
  • mto: This revision was merged to the branch mainline in revision 4992.
  • Revision ID: mbp@sourcefrog.net-20100129103623-hywka5hymo5z13jw
Change url to canonical.com or wiki, plus some doc improvements in passing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2008, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2008, 2009 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
254
254
        root_id_order.sort(key=operator.itemgetter(0))
255
255
        # Create a record stream containing the roots to create.
256
256
        if len(revs) > 100:
257
 
            # XXX: not covered by tests, should have a flag to always run
258
 
            # this. -- mbp 20100129
259
 
            graph = _get_rich_root_heads_graph(self.source, revs)
 
257
            graph = _get_rich_root_heads_graph(self.source_repo, revs)
260
258
        new_roots_stream = _new_root_data_stream(
261
259
            root_id_order, rev_id_to_root_id, parent_map, self.source, graph)
262
260
        return [('texts', new_roots_stream)]