Commit 357214bb authored by Christophe Dumez's avatar Christophe Dumez

- switched two lines to remove unversioned files AFTER reverting local changes.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8495 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 07199970
......@@ -730,12 +730,12 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
"""Update a working copy.
"""
path = self._getWorkingPath(self.getSubversionPath(business_template))
# First remove unversioned in working copy that could conflict
self.removeAllInList(x['uid'] for x in self.unversionedFiles(path))
client = self._getClient()
# Revert local changes in working copy first
# to import a "pure" BT after update
self.revert(path=path, recurse=True)
# First remove unversioned in working copy that could conflict
self.removeAllInList(x['uid'] for x in self.unversionedFiles(path))
# Update from SVN
client.update(path)
# Import in zodb
......
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