~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/indices.txt

  • Committer: Robert Collins
  • Date: 2007-07-15 15:40:37 UTC
  • mto: (2592.3.33 repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070715154037-3ar8g89decddc9su
Make GraphIndex accept nodes as key, value, references, so that the method
signature is closer to what a simple key->value index delivers. Also
change the behaviour when the reference list count is zero to accept
key, value as nodes, and emit key, value to make it identical in that case
to a simple key->value index. This may not be a good idea, but for now it
seems ok.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
signatures to operate would strive to keep the signatures and return
50
50
values as similar as possible. e.g.::
51
51
 
52
 
    GraphIndexBuilder - add_node(key, references, value)
 
52
    GraphIndexBuilder - add_node(key, value, references)
53
53
    IndexBuilder - add_node(key, value)
54
 
    WhackyIndexBuilder - add_node(key, whackiness, value)
 
54
    WhackyIndexBuilder - add_node(key, value, whackiness)
55
55
 
56
56
as opposed to something quite different like::
57
57