Skip to content

Commit eb39dc3

Browse files
committed
diff.py: copying all changelogs *before* creating diff
1 parent 4645138 commit eb39dc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

diff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ def _copy_all_changelogs(version, basedir):
174174

175175
def write_changelog(version2, version1=None, rootdir=None):
176176
"""Write changelog between version1 and version2 of WinPython"""
177-
text = compare_package_indexes(version2, version1, rootdir=rootdir)
178177
basedir = get_basedir(version2, rootdir=rootdir)
179178
_copy_all_changelogs(version2, basedir)
179+
text = compare_package_indexes(version2, version1, rootdir=rootdir)
180180
fname = osp.join(basedir, 'build', 'WinPython-%s_History.txt' % version2)
181181
with open(fname, 'wb') as fdesc:
182182
fdesc.write(text)
@@ -207,6 +207,7 @@ def test_compare(basedir, version2, version1):
207207
# print(compare_package_indexes('2.7.3.3', '2.7.3.1'))
208208
# write_changelog('2.7.4.1', '2.7.4.0')
209209
# write_changelog('2.7.5.0', '2.7.4.1')
210+
write_changelog('3.3.2.1')#, '2.7.5.0')
210211
write_changelog('2.7.5.1')#, '2.7.5.0')
211212
# write_changelog('3.3.0.0beta2', '3.3.0.0beta1')
212213
# write_changelog('3.3.1.1', '3.3.1.0')

0 commit comments

Comments
 (0)