~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Jelmer Vernooij
  • Date: 2009-03-12 14:02:53 UTC
  • mfrom: (4135 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4137.
  • Revision ID: jelmer@samba.org-20090312140253-bmldbzlmsitfdrzf
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
842
842
            if missing_text_keys:
843
843
                # TODO: raise a specific error that can handle many missing
844
844
                # keys.
 
845
                mutter("missing keys during fetch: %r", missing_text_keys)
845
846
                a_missing_key = missing_text_keys.pop()
846
847
                raise errors.RevisionNotPresent(a_missing_key[1],
847
848
                    a_missing_key[0])
2049
2050
        self._reconcile_does_inventory_gc = True
2050
2051
        self._reconcile_fixes_text_parents = True
2051
2052
        self._reconcile_backsup_inventory = False
2052
 
        self._fetch_order = 'unordered'
2053
2053
 
2054
2054
    def _warn_if_deprecated(self):
2055
2055
        # This class isn't deprecated, but one sub-format is
2085
2085
                pos, length = value[1:].split(' ')
2086
2086
                index_positions.append((index, int(pos), key[0],
2087
2087
                    tuple(parent[0] for parent in refs[0])))
2088
 
                pb.update("Reading revision index.", 0, 0)
 
2088
                pb.update("Reading revision index", 0, 0)
2089
2089
            index_positions.sort()
2090
2090
            batch_count = len(index_positions) / 1000 + 1
2091
 
            pb.update("Checking cached revision graph.", 0, batch_count)
 
2091
            pb.update("Checking cached revision graph", 0, batch_count)
2092
2092
            for offset in xrange(batch_count):
2093
 
                pb.update("Checking cached revision graph.", offset)
 
2093
                pb.update("Checking cached revision graph", offset)
2094
2094
                to_query = index_positions[offset * 1000:(offset + 1) * 1000]
2095
2095
                if not to_query:
2096
2096
                    break
2245
2245
    # Set this attribute in derived clases to control the _serializer that the
2246
2246
    # repository objects will have passed to their constructor.
2247
2247
    _serializer = None
 
2248
    # Packs are not confused by ghosts.
 
2249
    supports_ghosts = True
2248
2250
    # External references are not supported in pack repositories yet.
2249
2251
    supports_external_lookups = False
2250
2252
    # What index classes to use
2251
2253
    index_builder_class = None
2252
2254
    index_class = None
 
2255
    _fetch_uses_deltas = True
2253
2256
 
2254
2257
    def initialize(self, a_bzrdir, shared=False):
2255
2258
        """Create a pack based repository.