Commit 7bbcc714 authored by Julien Muchembled's avatar Julien Muchembled

ERP5VCS: stop suggest a commit message automatically from BT changelog

parent 923dc677
...@@ -130,9 +130,7 @@ ...@@ -130,9 +130,7 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -279,17 +277,4 @@ ...@@ -279,17 +277,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getVcsTool().getLastChangelog()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
658 659
\ No newline at end of file \ No newline at end of file
...@@ -232,24 +232,6 @@ class WorkingCopy(Implicit): ...@@ -232,24 +232,6 @@ class WorkingCopy(Implicit):
file.close() file.close()
return revision return revision
def getLastChangelog(self):
"""Return last changelog of a business template
"""
changelog = ""
try:
f = open(os.path.join(self.working_copy, 'bt', 'change_log'))
try:
for line in f:
if not line.strip():
break
changelog += line
finally:
f.close()
except IOError, e:
if e.errno != errno.ENOENT:
raise
return changelog
def hasDiff(self, path): def hasDiff(self, path):
try: try:
hasDiff = aq_base(self).__hasDiff hasDiff = aq_base(self).__hasDiff
......
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