Commit a25437d1 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor code to use ERP5VCS instead of pysvn

parent 8d3267e1
......@@ -445,8 +445,8 @@ class TemplateTool (BaseTool):
svn_checkout_tmp_dir = mkdtemp()
svn_checkout_dir = os.path.join(svn_checkout_tmp_dir, 'bt')
try:
import pysvn
pysvn.Client().export(url, svn_checkout_dir)
from Products.ERP5VCS.WorkingCopy import getVcsTool
getVcsTool('svn').__of__(self).export(url, svn_checkout_dir)
return self._download_local(svn_checkout_dir, bt_id)
finally:
shutil.rmtree(svn_checkout_tmp_dir)
......
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