From 801f6e250afcc55e2c1948a81e91ca3bbc9c232c Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Tue, 6 May 2008 07:11:23 +0000 Subject: [PATCH] Fix a bug that removes non-children. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20880 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Subversion/Tool/SubversionTool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py index 458f2d3fa5..e179d1a021 100644 --- a/product/ERP5Subversion/Tool/SubversionTool.py +++ b/product/ERP5Subversion/Tool/SubversionTool.py @@ -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 -- 2.30.9