Commit 801f6e25 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a bug that removes non-children.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20880 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0c531705
......@@ -1164,8 +1164,9 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
Necessary before recursively commit removals
"""
res = path_list
for file_path in path_list:
res = [x for x in res if file_path == x or file_path not in x]
for path in path_list:
path = path + '/'
res = [x for x in res if not x.startswith(path)]
return res
# return a set with directories present in the directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment