Skip to content

Commit 693badf

Browse files
committed
Merged in [10379] from rjsparks@nostrum.com:
Change the acronym link on the html agenda page to go to the group's charter page rather than the charter's document page. - Legacy-Id: 10409 Note: SVN reference [10379] has been migrated to Git commit bf0a5e3
2 parents d8e0dba + bf0a5e3 commit 693badf

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

bin/mergeready

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ COPYRIGHT
3838
"""
3939
from __future__ import print_function
4040

41-
import sys, os.path, getopt, re
41+
import sys, os.path, getopt, re, tzparse, pytz
4242
import debug
4343

4444
version = "0.20"
@@ -130,7 +130,9 @@ def split_loginfo(line):
130130
who = parts[2]
131131
date = parts[4]
132132
time = parts[5]
133-
when = "%s_%s" % (date, time)
133+
tz = parts[6]
134+
when = tzparse.tzparse(" ".join(parts[4:7]), "%Y-%m-%d %H:%M:%S %Z")
135+
when = when.astimezone(pytz.utc)
134136
return rev, who, when
135137

136138
# ----------------------------------------------------------------------
@@ -235,7 +237,7 @@ def get_ready_commits(repo, tree):
235237
branch = '/'.join(path.split('/')[1:4])
236238
elif re.search("(?i)((commit|branch) ready (for|to) merge)", line):
237239
if not (rev in merged_revs and branch == merged_revs[rev]):
238-
note(" %s %s: %s@%s" % (when, who, branch, rev))
240+
note(" %s %s: %s@%s" % (when.strftime("%Y-%m-%d %H:%MZ"), who, branch, rev))
239241
list += [(rev, repo, branch),]
240242
elif rev in merged_revs and not branch == merged_revs[rev]:
241243
sys.stderr.write('Rev %s: %s != %s' % (rev, branch, merged_revs[rev]))
@@ -282,7 +284,7 @@ for entry in ready:
282284
#
283285
merge_path = os.path.join(*path.split(os.path.sep)[:4])
284286
if not (rev, repo, merge_path) in hold:
285-
output_line = "%s %-24s %s@%s" % (when, who+":", merge_path, rev)
287+
output_line = "%s %-24s %s@%s" % (when.strftime("%Y-%m-%d_%H:%MZ"), who+":", merge_path, rev)
286288
if unittest == 'passed':
287289
ready_commits[when] = output_line
288290
else:

ietf/templates/meeting/agenda.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ <h2>
242242

243243
<td>
244244
{% if item.session.historic_group.charter %}
245-
<a href="{{item.session.historic_group.charter.get_absolute_url}}">{{item.session.historic_group.acronym}}</a>
245+
<a href="{% url 'group_charter' acronym=item.session.historic_group.acronym %}">{{item.session.historic_group.acronym}}</a>
246246
{% else %}
247247
{{item.session.historic_group.acronym}}
248248
{% endif %}

0 commit comments

Comments
 (0)