Commit 4e2a1a8b authored by Christophe Dumez's avatar Christophe Dumez

- fixed a typo in export function

- do not use export function anymore (makes zope crash :'( )


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7343 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afa81d77
......@@ -227,7 +227,7 @@ try:
raise error
def export(self, src, dest):
return self.client.update(src_url_or_path=src, dest_path=dest)
return self.client.export(src_url_or_path=src, dest_path=dest)
def update(self, path):
try:
......
......@@ -965,15 +965,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
self.activate().removeAllInList([path,])
def importBT(self, bt):
# Do svn export before importing to get rid of .svn stuff
# and unversioned files.
tmp_path = mktemp() + os.sep
self.export(self._getWorkingPath(self.getSubversionPath(bt)), tmp_path)
# Import
id = bt.download(tmp_path)
# Clean up
self.activate().removeAllInList([tmp_path,])
return id
return bt.download(self._getWorkingPath(self.getSubversionPath(bt)))
# Get a list of files and keep only parents
# Necessary before recursively commit removals
......
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