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

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1033
1033
        for subp in self.extras():
1034
1034
            if not self.is_ignored(subp):
1035
1035
                yield subp
1036
 
 
 
1036
    
 
1037
    @needs_write_lock
 
1038
    def unversion(self, file_ids):
 
1039
        """Remove the file ids in file_ids from the current versioned set.
 
1040
 
 
1041
        When a file_id is unversioned, all of its children are automatically
 
1042
        unversioned.
 
1043
 
 
1044
        :param file_ids: The file ids to stop versioning.
 
1045
        :raises: NoSuchId if any fileid is not currently versioned.
 
1046
        """
 
1047
        for file_id in file_ids:
 
1048
            if self._inventory.has_id(file_id):
 
1049
                self._inventory.remove_recursive_id(file_id)
 
1050
            else:
 
1051
                raise errors.NoSuchId(self, file_id)
 
1052
        if len(file_ids):
 
1053
            # in the future this should just set a dirty bit to wait for the 
 
1054
            # final unlock. However, until all methods of workingtree start
 
1055
            # with the current in -memory inventory rather than triggering 
 
1056
            # a read, it is more complex - we need to teach read_inventory
 
1057
            # to know when to read, and when to not read first... and possibly
 
1058
            # to save first when the in memory one may be corrupted.
 
1059
            # so for now, we just only write it if it is indeed dirty.
 
1060
            # - RBC 20060907
 
1061
            self._write_inventory(self._inventory)
 
1062
    
1037
1063
    @deprecated_method(zero_eight)
1038
1064
    def iter_conflicts(self):
1039
1065
        """List all files in the tree that have text or content conflicts.