From e0aacf5201bb59306d1adb8ad30ae41b7d31bfc5 Mon Sep 17 00:00:00 2001 From: Christophe Dumez <christophe@nexedi.com> Date: Tue, 25 Apr 2006 11:59:00 +0000 Subject: [PATCH] - import new bt on Update from SVN git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6920 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Subversion/Tool/SubversionTool.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py index 70692b8911..c195378d8e 100644 --- a/product/ERP5Subversion/Tool/SubversionTool.py +++ b/product/ERP5Subversion/Tool/SubversionTool.py @@ -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): -- 2.30.9