Merge "diff_branches: fix deprecated opts listing"

This commit is contained in:
Jenkins 2015-11-18 10:27:02 +00:00 committed by Gerrit Code Review
commit 378fdb1b6f
2 changed files with 3 additions and 2 deletions

View File

@ -237,7 +237,8 @@ def get_env(project, new_branch, old_list, new_list):
# Deprecated options
if deprecated_opts:
for deprecated, new in deprecated_opts:
for deprecated, new in sorted(deprecated_opts, cmp=_cmpopts,
key=lambda tup: tup[0]):
deprecated = format_option_name(deprecated)
new = format_option_name(new)
env['deprecated_opts'].append((deprecated, new))

View File

@ -41,7 +41,7 @@ New, updated, and deprecated options in {{ release }} for {{ codename }}
* - Deprecated option
- New Option
{% for cells in new_opts %}
{% for cells in deprecated_opts %}
* - ``{{ cells[0] }}``
- ``{{ cells[1] }}``
{% endfor %}