~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-05 14:23:42 UTC
  • mto: (5757.7.2 knitpackrepo-6)
  • mto: This revision was merged to the branch mainline in revision 5771.
  • Revision ID: jelmer@samba.org-20110405142342-577i2bzisi3mkjwt
Move _DirectPackAccess from bzrlib.knit to bzrlib.pack.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    errors,
27
27
    index as _mod_index,
28
28
    inventory,
29
 
    knit,
30
29
    osutils,
31
 
    pack,
 
30
    pack as _mod_pack,
32
31
    revision as _mod_revision,
33
32
    trace,
34
33
    ui,
152
151
        # expose this on self, for the occasion when clients want to add data.
153
152
        self._write_data = _write_data
154
153
        # a pack writer object to serialise pack records.
155
 
        self._writer = pack.ContainerWriter(self._write_data)
 
154
        self._writer = _mod_pack.ContainerWriter(self._write_data)
156
155
        self._writer.begin()
157
156
        # what state is the pack in? (open, finished, aborted)
158
157
        self._state = 'open'
352
351
        """Build a VersionedFiles instance on top of this group of packs."""
353
352
        index_name = index_name + '_index'
354
353
        index_to_pack = {}
355
 
        access = knit._DirectPackAccess(index_to_pack,
 
354
        access = _mod_pack._DirectPackAccess(index_to_pack,
356
355
                                        reload_func=self._reload_func)
357
356
        if for_write:
358
357
            # Use new_pack