~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-16 19:37:44 UTC
  • mfrom: (1610.1.7 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060316193744-3fcf853ba6d5b713
Several small fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
595
595
        dir_mode = a_bzrdir._control_files._dir_mode
596
596
        file_mode = a_bzrdir._control_files._file_mode
597
597
 
598
 
        def get_weave(name, prefixed=False):
599
 
            if name:
600
 
                name = safe_unicode(name)
601
 
            else:
602
 
                name = ''
603
 
            relpath = a_bzrdir._control_files._escape(name)
604
 
            weave_transport = a_bzrdir._control_files._transport.clone(relpath)
605
 
            ws = WeaveStore(weave_transport, prefixed=prefixed,
606
 
                            dir_mode=dir_mode,
607
 
                            file_mode=file_mode)
608
 
            if a_bzrdir._control_files._transport.should_cache():
609
 
                ws.enable_cache = True
610
 
            return ws
611
 
 
612
598
        def get_store(name, compressed=True, prefixed=False):
613
599
            # FIXME: This approach of assuming stores are all entirely compressed
614
600
            # or entirely uncompressed is tidy, but breaks upgrade from 
670
656
        dir_mode = self.control_files._dir_mode
671
657
        file_mode = self.control_files._file_mode
672
658
 
673
 
        def get_weave(name, prefixed=False):
674
 
            if name:
675
 
                name = safe_unicode(name)
676
 
            else:
677
 
                name = ''
678
 
            relpath = self.control_files._escape(name)
679
 
            weave_transport = self.control_files._transport.clone(relpath)
680
 
            ws = WeaveStore(weave_transport, prefixed=prefixed,
681
 
                            dir_mode=dir_mode,
682
 
                            file_mode=file_mode)
683
 
            if self.control_files._transport.should_cache():
684
 
                ws.enable_cache = True
685
 
            return ws
686
 
 
687
659
    @needs_read_lock
688
660
    def is_shared(self):
689
661
        """Return True if this repository is flagged as a shared repository."""