Commit e0aacf52 authored by Christophe Dumez's avatar Christophe Dumez

- import new bt on Update from SVN


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6920 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86a8cce0
......@@ -628,11 +628,14 @@ class SubversionTool(UniqueObject, Folder):
raise SubversionUnknownBusinessTemplateError, "Could not find '"+bt_name+"' at first level of working copies."
security.declareProtected('Import/Export objects', 'update')
def update(self, path):
def update(self, bt):
"""Update a working copy.
"""
path = self.getSubversionPath(bt)
client = self._getClient()
return client.update(path)
res = client.update(path)
self.importBT(bt);
return res
security.declareProtected('Import/Export objects', 'add')
# path can be a list or not (relative or absolute)
......@@ -847,6 +850,9 @@ class SubversionTool(UniqueObject, Folder):
self.goToWorkingCopy(bt)
# Clean up
self.activate().removeAllInList([path,])
def importBT(self, bt):
bt.download(self.getSubversionPath(bt))
# return a set with directories present in the directory
def getSetDirsForDir(self, directory):
......
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