Commit e159ac0a authored by Christophe Dumez's avatar Christophe Dumez

- revert changes before updating bt


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8487 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 51e38faf
......@@ -733,6 +733,9 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
# 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)
# 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