/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 doc/developers/indices.txt

  • Committer: Robert Collins
  • Date: 2010-05-06 23:41:35 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506234135-yivbzczw1sejxnxc
Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
expected to return an object which can be used to unlock them. This reduces
duplicate code when using cleanups. The previous 'tokens's returned by
``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
on the result of the lock_write. ``repository.RepositoryWriteLockResult``
and ``branch.BranchWriteLockResult`` document this. (Robert Collins)

``log._get_info_for_log_files`` now takes an add_cleanup callable.
(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
:Date: 2007-07-14
9
9
 
10
 
This document describes the indexing facilities within breezy.
 
10
This document describes the indexing facilities within bzrlib.
11
11
 
12
12
 
13
13
.. contents::
33
33
Overview
34
34
========
35
35
 
36
 
Breezy is moving to a write-once model for repository storage in order to
 
36
bzr is moving to a write-once model for repository storage in order to
37
37
achieve lock-free repositories eventually. In order to support this, we are
38
38
making our new index classes **immutable**. That is, one creates a new
39
39
index in a single operation, and after that it is read only. To combine
98
98
 
99
99
``GraphIndex`` supports graph based lookups. While currently unoptimised
100
100
for reading, the index is quite space efficient at storing the revision
101
 
graph index for Breezy. The ``GraphIndexBuilder`` may be used to create one
 
101
graph index for bzr. The ``GraphIndexBuilder`` may be used to create one
102
102
of these indices by calling ``add_node`` until all nodes are added, then
103
103
``finish`` to obtain a file stream containing the index data. Multiple
104
104
indices may be queried using the ``CombinedGraphIndex`` class.