Commit 613fa24b authored by Christophe Dumez's avatar Christophe Dumez

- added svn export function


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7322 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 179c7851
......@@ -226,6 +226,9 @@ try:
else:
raise error
def export(self, src, dest):
return self.client.update(src_url_or_path=src, dest_path=dest)
def update(self, path):
try:
return self.client.update(path)
......
......@@ -828,6 +828,13 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
path = self._getWorkingPath(self.relativeToAbsolute(path, bt))
return client.resolved(path)
security.declareProtected('Import/Export objects', 'export')
def export(self, src, dest):
"""Export an unversioned copy of the working copy
"""
client = self._getClient()
return client.export(src, dest)
def relativeToAbsolute(self, path, bt) :
if path[0] == os.sep:
# already absolute
......
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