Commit 886e1429 authored by Christophe Dumez's avatar Christophe Dumez

- Fixed an important bug in xml export


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7532 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ca433aa
...@@ -1088,6 +1088,8 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -1088,6 +1088,8 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
+ os.sep) + os.sep)
path = mktemp() + os.sep path = mktemp() + os.sep
try: try:
# XXX: Big hack to make export work as expected.
get_transaction().commit()
business_template.export(path=path, local=1) business_template.export(path=path, local=1)
# svn del deleted files # svn del deleted files
self.deleteOldFiles(svn_path, path) self.deleteOldFiles(svn_path, path)
...@@ -1095,7 +1097,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -1095,7 +1097,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
self.addNewFiles(svn_path, path) self.addNewFiles(svn_path, path)
self.goToWorkingCopy(business_template) self.goToWorkingCopy(business_template)
except (pysvn.ClientError, NotFound, AttributeError, \ except (pysvn.ClientError, NotFound, AttributeError, \
AttributeError, Error), error: Error), error:
# Clean up # Clean up
removeAll(path) removeAll(path)
raise error raise error
......
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