Add generic changelog link for rattail/tailbone packages

i.e. production changelog, when not running from src
This commit is contained in:
Lance Edgar 2017-08-13 21:22:44 -05:00
parent cbf3a9e939
commit 56910ea4c1

View file

@ -249,10 +249,12 @@ class UpgradeView(MasterView):
else:
return 'https://rattailproject.org/trac/log/{}/?rev={}&stop_rev={}&limit=100'.format(
projects[project], new_version, old_version)
elif re.match(r'^\d+\.\d+\.\d+$', new_version):
return 'https://rattailproject.org/trac/browser/{}/CHANGES.rst?rev=v{}'.format(
projects[project], new_version)
else:
# TODO: use changelog from latest docs
# return 'https://rattailproject.org/buildbot/docs/{}/changelog.html'.format(projects[project])
pass
return 'https://rattailproject.org/trac/browser/{}/CHANGES.rst'.format(
projects[project])
def render_diff_field(self, field, diff):
old_version = diff.old_value(field)