/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

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
        else:
181
181
            self._locks -= 1
182
182
 
 
183
    @needs_write_lock
 
184
    def unversion(self, file_ids):
 
185
        """Remove the file ids in file_ids from the current versioned set.
 
186
 
 
187
        When a file_id is unversioned, all of its children are automatically
 
188
        unversioned.
 
189
 
 
190
        :param file_ids: The file ids to stop versioning.
 
191
        :raises: NoSuchId if any fileid is not currently versioned.
 
192
        """
 
193
        # XXX: This should be in mutabletree, but the inventory-save action
 
194
        # is not relevant to memory tree. Until that is done in unlock by
 
195
        # working tree, we cannot share the implementation.
 
196
        for file_id in file_ids:
 
197
            if self._inventory.has_id(file_id):
 
198
                self._inventory.remove_recursive_id(file_id)
 
199
            else:
 
200
                raise errors.NoSuchId(self, file_id)
 
201
 
183
202
    def set_parent_trees(self, parents_list, allow_leftmost_as_ghost=False):
184
203
        """See MutableTree.set_parent_trees()."""
185
204
        if len(parents_list) == 0: