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

Do a lot of renaming.

Change the config from 'max_entries_per_source' to 'max_bytes_to_index'.
I'm not 100% happy, because it is max_bytes_to_delta_index_per_source, but
that is just getting rediculously long.
Internally, change the code to take a 'settings' function, which currently
returns a tuple. I'm thinking to change it to a dict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Inter-object utility class."""
19
19
 
20
20
 
 
21
from bzrlib.errors import NoCompatibleInter
 
22
 
 
23
 
21
24
class InterObject(object):
22
25
    """This class represents operations taking place between two objects.
23
26
 
81
84
        for provider in reversed(klass._optimisers):
82
85
            if provider.is_compatible(source, target):
83
86
                return provider(source, target)
84
 
        return klass(source, target)
 
87
        raise NoCompatibleInter(source, target)
85
88
 
86
89
    def lock_read(self):
87
90
        """Take out a logical read lock.