diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py
index cf4029ddb7fa44253c9e965ce7071f1ba147c9d5..b21abfe9f7537e63b85eba8d17821228a124702d 100644
--- a/product/ERP5Subversion/Tool/SubversionTool.py
+++ b/product/ERP5Subversion/Tool/SubversionTool.py
@@ -48,6 +48,7 @@ from OFS.Traversable import NotFound
 from Products.ERP5Type.patches.copyTree import copytree, Error
 from Products.ERP5Type.patches.cacheWalk import cacheWalk
 from time import ctime
+import transaction
 
 try:
   import pysvn
@@ -1124,7 +1125,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
     path = mktemp() + os.sep
     try:
       # XXX: Big hack to make export work as expected.
-      get_transaction().commit()
+      transaction.commit()
       business_template.export(path=path, local=1)
       # svn del deleted files
       self.deleteOldFiles(svn_path, path)