~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:48:54 UTC
  • mto: (5757.7.2 knitpackrepo-6)
  • mto: This revision was merged to the branch mainline in revision 5771.
  • Revision ID: jelmer@samba.org-20110405144854-a9803ggiflk8u4zq
Revert noknit branch for the moment.

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