~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-09 00:35:35 UTC
  • mfrom: (5757.5.4 move-direct-pack-access)
  • Revision ID: pqm@pqm.ubuntu.com-20110409003535-lu3d1bkltkbqul3x
(jelmer) Move _DirectPackAccess to bzrlib.repofmt.pack_repo. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
from itertools import izip
57
57
import operator
58
58
import os
59
 
import sys
60
59
 
61
60
from bzrlib.lazy_import import lazy_import
62
61
lazy_import(globals(), """
75
74
    tuned_gzip,
76
75
    ui,
77
76
    )
 
77
 
 
78
from bzrlib.repofmt import pack_repo
78
79
""")
79
80
from bzrlib import (
80
81
    annotate,
799
800
        writer.begin()
800
801
        index = _KnitGraphIndex(graph_index, lambda:True, parents=parents,
801
802
            deltas=delta, add_callback=graph_index.add_nodes)
802
 
        access = _DirectPackAccess({})
 
803
        access = pack_repo._DirectPackAccess({})
803
804
        access.set_writer(writer, graph_index, (transport, 'newpack'))
804
805
        result = KnitVersionedFiles(index, access,
805
806
            max_delta_chain=max_delta_chain)