Commit 6561c395 authored by Jérome Perrin's avatar Jérome Perrin

Changes from 0.8.1.7

Fix a regression that was introduced in 0.8.1.6.

changes from
http://www.nexedi.org/static/packages/source/erp5diff-0.8.1.7.tar.gz
parent dfe0fa26
0.8.1.7 (2015/04/23)
--------------------
* Fix a regression that was introduced in 0.8.1.6.
0.8.1.6 (2015/04/23) 0.8.1.6 (2015/04/23)
-------------------- --------------------
* Disable _removeStrictEqualsSubNodeList that can make a wrong result * Disable _removeStrictEqualsSubNodeList that can make a wrong result
......
...@@ -6,7 +6,7 @@ import re ...@@ -6,7 +6,7 @@ import re
api_version = re.search(r'\s*__version__\s*=\s*(\S+)', api_version = re.search(r'\s*__version__\s*=\s*(\S+)',
open('src/ERP5Diff/ERP5Diff.py').read()).group(1).strip() open('src/ERP5Diff/ERP5Diff.py').read()).group(1).strip()
revision = 6 revision = 7
version = '%s.%s' % (api_version.replace("'", ''), revision) version = '%s.%s' % (api_version.replace("'", ''), revision)
def read(name): def read(name):
......
...@@ -252,7 +252,7 @@ class ERP5Diff: ...@@ -252,7 +252,7 @@ class ERP5Diff:
relative_previous = relative_previous_list[0] relative_previous = relative_previous_list[0]
else: else:
relative_previous = None relative_previous = None
if relative_previous in element_list: if last_append_element is not None and relative_previous in element_list:
#reuse same container as preceding #reuse same container as preceding
append_element = last_append_element append_element = last_append_element
elif relative_next is not None and relative_next not in element_list: elif relative_next is not None and relative_next not in element_list:
......
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