~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-11-13 20:14:22 UTC
  • mfrom: (1185.16.159)
  • Revision ID: robertc@robertcollins.net-20051113201422-8a34ef413bfc8222
Stores with some compressed texts and some uncompressed texts are now able to
be used. (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
from bzrlib.tree import EmptyTree, RevisionTree
45
45
from bzrlib.inventory import Inventory
46
46
from bzrlib.store import copy_all
47
 
from bzrlib.store.compressed_text import CompressedTextStore
48
47
from bzrlib.store.text import TextStore
49
48
from bzrlib.store.weave import WeaveStore
50
49
from bzrlib.testament import Testament
237
236
            # some existing branches where there's a mixture; we probably 
238
237
            # still want the option to look for both.
239
238
            relpath = self._rel_controlfilename(name)
240
 
            if compressed:
241
 
                store = CompressedTextStore(self._transport.clone(relpath),
242
 
                                            prefixed=prefixed)
243
 
            else:
244
 
                store = TextStore(self._transport.clone(relpath),
245
 
                                  prefixed=prefixed)
 
239
            store = TextStore(self._transport.clone(relpath),
 
240
                              prefixed=prefixed,
 
241
                              compressed=compressed)
246
242
            #if self._transport.should_cache():
247
243
            #    cache_path = os.path.join(self.cache_root, name)
248
244
            #    os.mkdir(cache_path)