diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py index a5084cb121cd5f17aee0ced430b59305683bcbcb..e3076b9f9a1e443e6d7dc93387d2d5371bf6c3ac 100644 --- a/product/ERP5Subversion/Tool/SubversionTool.py +++ b/product/ERP5Subversion/Tool/SubversionTool.py @@ -1088,6 +1088,8 @@ class SubversionTool(BaseTool, UniqueObject, Folder): + os.sep) path = mktemp() + os.sep try: + # XXX: Big hack to make export work as expected. + get_transaction().commit() business_template.export(path=path, local=1) # svn del deleted files self.deleteOldFiles(svn_path, path) @@ -1095,7 +1097,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): self.addNewFiles(svn_path, path) self.goToWorkingCopy(business_template) except (pysvn.ClientError, NotFound, AttributeError, \ - AttributeError, Error), error: + Error), error: # Clean up removeAll(path) raise error