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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-11 18:31:46 UTC
  • mfrom: (5777.3.6 inventorytree)
  • Revision ID: pqm@pqm.ubuntu.com-20110411183146-s7r7m89gnp0dl3sr
(jelmer) Split inventory-specific functionality out of Tree into
 InventoryTree. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    errors,
27
27
    mutabletree,
28
28
    revision as _mod_revision,
 
29
    revisiontree,
 
30
    tree,
29
31
    )
30
32
from bzrlib.decorators import needs_read_lock
31
33
from bzrlib.osutils import sha_file
33
35
from bzrlib.transport.memory import MemoryTransport
34
36
 
35
37
 
36
 
class MemoryTree(mutabletree.MutableTree):
 
38
class MemoryTree(mutabletree.MutableTree, tree.InventoryTree):
37
39
    """A MemoryTree is a specialisation of MutableTree.
38
40
 
39
41
    It maintains nearly no state outside of read_lock and write_lock
49
51
        self._locks = 0
50
52
        self._lock_mode = None
51
53
 
 
54
    def is_control_filename(self, filename):
 
55
        # Memory tree doesn't have any control filenames
 
56
        return False
 
57
 
52
58
    @needs_tree_write_lock
53
59
    def _add(self, files, ids, kinds):
54
60
        """See MutableTree._add."""