~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: Martin
  • Date: 2011-04-15 21:22:57 UTC
  • mto: This revision was merged to the branch mainline in revision 5797.
  • Revision ID: gzlist@googlemail.com-20110415212257-jgtovwwp4be7egd9
Add release notes

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from bzrlib.transport.memory import MemoryTransport
34
34
 
35
35
 
36
 
class MemoryTree(mutabletree.MutableTree):
 
36
class MemoryTree(mutabletree.MutableInventoryTree):
37
37
    """A MemoryTree is a specialisation of MutableTree.
38
38
 
39
39
    It maintains nearly no state outside of read_lock and write_lock
49
49
        self._locks = 0
50
50
        self._lock_mode = None
51
51
 
 
52
    def is_control_filename(self, filename):
 
53
        # Memory tree doesn't have any control filenames
 
54
        return False
 
55
 
52
56
    @needs_tree_write_lock
53
57
    def _add(self, files, ids, kinds):
54
58
        """See MutableTree._add."""