~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-18 04:55:00 UTC
  • mfrom: (5784.2.1 754188-apport-test)
  • Revision ID: pqm@pqm.ubuntu.com-20110418045500-ce6lkgyiq7f47q43
(mbp) Rewrite test_report_bug_legacy away from using doctest (see bug
 764188) (Martin Pool)

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."""