1033
1033
for subp in self.extras():
1034
1034
if not self.is_ignored(subp):
1038
def unversion(self, file_ids):
1039
"""Remove the file ids in file_ids from the current versioned set.
1041
When a file_id is unversioned, all of its children are automatically
1044
:param file_ids: The file ids to stop versioning.
1045
:raises: NoSuchId if any fileid is not currently versioned.
1047
for file_id in file_ids:
1048
if self._inventory.has_id(file_id):
1049
self._inventory.remove_recursive_id(file_id)
1051
raise errors.NoSuchId(self, file_id)
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.
1061
self._write_inventory(self._inventory)
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.