/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/knit.py

  • Committer: mbp at sourcefrog
  • Date: 2011-04-11 01:23:58 UTC
  • mfrom: (5777 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5802.
  • Revision ID: mbp@sourcefrog.net-20110411012358-gl07rdtxydlq7fh1
merge news

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(), """
63
62
import gzip
64
63
 
65
64
from bzrlib import (
66
 
    annotate,
67
65
    debug,
68
66
    diff,
69
67
    graph as _mod_graph,
70
68
    index as _mod_index,
71
 
    lru_cache,
72
69
    pack,
73
70
    patiencediff,
74
 
    progress,
75
71
    static_tuple,
76
72
    trace,
77
73
    tsort,
78
74
    tuned_gzip,
79
75
    ui,
80
76
    )
 
77
 
 
78
from bzrlib.repofmt import pack_repo
81
79
""")
82
80
from bzrlib import (
 
81
    annotate,
83
82
    errors,
84
83
    osutils,
85
84
    )
801
800
        writer.begin()
802
801
        index = _KnitGraphIndex(graph_index, lambda:True, parents=parents,
803
802
            deltas=delta, add_callback=graph_index.add_nodes)
804
 
        access = _DirectPackAccess({})
 
803
        access = pack_repo._DirectPackAccess({})
805
804
        access.set_writer(writer, graph_index, (transport, 'newpack'))
806
805
        result = KnitVersionedFiles(index, access,
807
806
            max_delta_chain=max_delta_chain)