Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/ra.py
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | def remove_child(self, path): | ||||
else: | else: | ||||
os.remove(fpath) | os.remove(fpath) | ||||
# when deleting a directory ensure to remove any svn property for the | # when deleting a directory ensure to remove any svn property for the | ||||
# file it contains as they can be added again later in another revision | # file it contains as they can be added again later in another revision | ||||
# without the same property set | # without the same property set | ||||
fullpath = os.path.join(self.rootpath, path) | fullpath = os.path.join(self.rootpath, path) | ||||
for state_path in list(self.file_states): | for state_path in list(self.file_states): | ||||
if state_path.startswith(fullpath): | if state_path.startswith(fullpath + b"/"): | ||||
del self.file_states[state_path] | del self.file_states[state_path] | ||||
def update_checksum(self): | def update_checksum(self): | ||||
raise NotImplementedError("This should be implemented.") | raise NotImplementedError("This should be implemented.") | ||||
def open_directory(self, *args): | def open_directory(self, *args): | ||||
raise NotImplementedError("This should be implemented.") | raise NotImplementedError("This should be implemented.") | ||||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |