Commit 21f15ad6 authored by Christophe Dumez's avatar Christophe Dumez

- code cleanup


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7242 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2008cb8d
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from Acquisition import Implicit from Acquisition import Implicit
import time, os, time import time, os
from Products.ERP5Type.Utils import convertToUpperCase from Products.ERP5Type.Utils import convertToUpperCase
from MethodObject import Method from MethodObject import Method
from Globals import InitializeClass from Globals import InitializeClass
......
...@@ -705,6 +705,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -705,6 +705,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
""" """
client = self._getClient() client = self._getClient()
object_to_update = {} object_to_update = {}
# Transform params to list if they are not already lists
if not added_files : if not added_files :
added_files = [] added_files = []
if not other_files : if not other_files :
...@@ -875,7 +876,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -875,7 +876,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
def extractBT(self, bt): def extractBT(self, bt):
bt.build() bt.build()
svn_path = self.getSubversionPath(bt) + os.sep svn_path = self.getSubversionPath(bt) + os.sep
path = mktemp() +os.sep path = mktemp() + os.sep
bt.export(path=path, local=1) bt.export(path=path, local=1)
# svn del deleted files # svn del deleted files
self.deleteOldFiles(svn_path, path, bt) self.deleteOldFiles(svn_path, path, bt)
......
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