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,6 +4567,9 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4567,6 +4567,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
# Make sure that everything is sane. # Make sure that everything is sane.
self.clean() self.clean()
try:
self.setRevision(self.getVcsTool().newRevision())
except NotAWorkingCopyError:
self.updateRevisionNumber() self.updateRevisionNumber()
self._setTemplateFormatVersion(1) self._setTemplateFormatVersion(1)
self.storeTemplateItemData() self.storeTemplateItemData()
......
...@@ -200,6 +200,7 @@ class WorkingCopy(Implicit): ...@@ -200,6 +200,7 @@ class WorkingCopy(Implicit):
file.write(str(revision)) file.write(str(revision))
finally: finally:
file.close() file.close()
return revision
def getLastChangelog(self): def getLastChangelog(self):
"""Return last changelog of a business template """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