Commit c7a5860d authored by Julien Muchembled's avatar Julien Muchembled

Increase BT revision according to upstream revision, if possible

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44045 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7e53dc46
......@@ -4567,7 +4567,10 @@ Business Template is a set of definitions, such as skins, portal types and categ
# Make sure that everything is sane.
self.clean()
self.updateRevisionNumber()
try:
self.setRevision(self.getVcsTool().newRevision())
except NotAWorkingCopyError:
self.updateRevisionNumber()
self._setTemplateFormatVersion(1)
self.storeTemplateItemData()
......
......@@ -200,6 +200,7 @@ class WorkingCopy(Implicit):
file.write(str(revision))
finally:
file.close()
return revision
def getLastChangelog(self):
"""Return last changelog of a business template
......
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