/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 repofmt.py

  • Committer: John Arbash Meinel
  • Date: 2009-02-18 20:40:46 UTC
  • mto: (0.22.4 experimental)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090218204046-yyqr5q4tza4v4xug
(ugly hack) autopacking doesn't work, so don't do it.
Force the fetch order and delta logic to use fulltexts in topological order.
It isn't great, but it means things work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
        self.repo.signatures._index._add_callback = self.signature_index.add_callback
230
230
        self.repo.texts._index._add_callback = self.text_index.add_callback
231
231
 
 
232
    def _do_autopack(self):
 
233
        return False
 
234
 
232
235
 
233
236
 
234
237
class GCPackRepository(KnitPackRepository):
301
304
        self._reconcile_does_inventory_gc = True
302
305
        self._reconcile_fixes_text_parents = True
303
306
        self._reconcile_backsup_inventory = False
 
307
        # Note: We cannot unpack a delta that references a text we haven't seen yet.
 
308
        #       there are 2 options, work in fulltexts, or require topological
 
309
        #       sorting. Using fulltexts is more optimal for local operations,
 
310
        #       because the source can be smart about extracting multiple
 
311
        #       in-a-row (and sharing strings). Topological is better for
 
312
        #       remote, because we access less data.
 
313
        self._fetch_order = 'topological'
 
314
        self._fetch_uses_deltas = False
304
315
 
305
316
 
306
317
if chk_support:
362
373
            self._reconcile_does_inventory_gc = True
363
374
            self._reconcile_fixes_text_parents = True
364
375
            self._reconcile_backsup_inventory = False
 
376
            self._fetch_order = 'topological'
 
377
            self._fetch_uses_deltas = False
365
378
 
366
379
 
367
380
class RepositoryFormatPackGCPlain(RepositoryFormatPackDevelopment2):