/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Martin Pool
  • Date: 2009-03-03 03:01:49 UTC
  • mfrom: (4070 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4073.
  • Revision ID: mbp@sourcefrog.net-20090303030149-8p8o8hszdtqa7w8f
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        self._commit_builder_class = _commit_builder_class
125
125
        self._serializer = _serializer
126
126
        self._reconcile_fixes_text_parents = True
127
 
        self._fetch_uses_deltas = True
128
 
        self._fetch_order = 'topological'
129
127
 
130
128
    @needs_read_lock
131
129
    def _all_revision_ids(self):
222
220
        reconciler = KnitReconciler(self, thorough=thorough)
223
221
        reconciler.reconcile()
224
222
        return reconciler
225
 
    
 
223
 
226
224
    def _make_parents_provider(self):
227
225
        return _KnitsParentsProvider(self.revisions)
228
226
 
259
257
 
260
258
 
261
259
class RepositoryFormatKnit(MetaDirRepositoryFormat):
262
 
    """Bzr repository knit format (generalized). 
 
260
    """Bzr repository knit format (generalized).
263
261
 
264
262
    This repository format has:
265
263
     - knits for file texts and inventory
288
286
    supports_ghosts = True
289
287
    # External lookups are not supported in this format.
290
288
    supports_external_lookups = False
 
289
    _fetch_order = 'topological'
 
290
    _fetch_uses_deltas = True
291
291
 
292
292
    def _get_inventories(self, repo_transport, repo, name='inventory'):
293
293
        mapper = versionedfile.ConstantMapper(name)
333
333
        dirs = ['knits']
334
334
        files = []
335
335
        utf8_files = [('format', self.get_format_string())]
336
 
        
 
336
 
337
337
        self._upload_blank_content(a_bzrdir, dirs, files, utf8_files, shared)
338
338
        repo_transport = a_bzrdir.get_repository_transport(None)
339
339
        control_files = lockable_files.LockableFiles(repo_transport,
351
351
 
352
352
    def open(self, a_bzrdir, _found=False, _override_transport=None):
353
353
        """See RepositoryFormat.open().
354
 
        
 
354
 
355
355
        :param _override_transport: INTERNAL USE ONLY. Allows opening the
356
356
                                    repository at a slightly different url
357
357
                                    than normal. I.e. during 'upgrade'.
453
453
        if not getattr(target_format, 'supports_tree_reference', False):
454
454
            raise errors.BadConversionTarget(
455
455
                'Does not support nested trees', target_format)
456
 
            
 
456
 
457
457
    def get_format_string(self):
458
458
        """See RepositoryFormat.get_format_string()."""
459
459
        return "Bazaar Knit Repository Format 3 (bzr 0.15)\n"