mozext: remove template keywords related to `aurora` repository (Bug 1569734) r=smacleod
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 31 Jul 2019 21:08:35 +0000
changeset 7130 ae1aa880be83cf609c13a1e4bf32c6535ac31d42
parent 7129 ed5808efbfc7415e552a3de12732cabc9c305966
child 7131 39ec9297f7509045a60a08723e7539173e2949ad
push id3551
push usercosheehan@mozilla.com
push dateWed, 31 Jul 2019 21:22:35 +0000
treeherderversion-control-tools@5e857d4f3091 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmacleod
bugs1569734
mozext: remove template keywords related to `aurora` repository (Bug 1569734) r=smacleod "Aurora" is no longer one of the trains, so we don't need this template keyword. Differential Revision: https://phabricator.services.mozilla.com/D39949
hgext/mozext/__init__.py
--- a/hgext/mozext/__init__.py
+++ b/hgext/mozext/__init__.py
@@ -1121,26 +1121,16 @@ def _calculate_push_milestone(repo, ctx,
     if not pushes:
         return None
 
     push = pushes[0]
 
     return repo._revision_milestone(str(push[4]))
 
 
-def template_firstaurora(context, mapping):
-    """:firstaurora: String. The version of the first aurora release with
-    this changeset.
-    """
-    ctx = context.resource(mapping, 'ctx')
-    repo = context.resource(mapping, 'repo')
-
-    return _calculate_push_milestone(repo, ctx, 'aurora')
-
-
 def template_firstnightly(context, mapping):
     """:firstnightly: String. The version of the first nightly release
     with this changeset.
     """
     ctx = context.resource(mapping, 'ctx')
     repo = context.resource(mapping, 'repo')
 
     return _calculate_push_milestone(repo, ctx, 'central')
@@ -1195,26 +1185,16 @@ def _calculate_next_daily_release(repo, 
     utc_offset = 11 if is_dst else 10
 
     if dt.hour > 3 + utc_offset:
         dt += datetime.timedelta(days=1)
 
     return dt.date().isoformat()
 
 
-def template_auroradate(context, mapping):
-    """:auroradate: String. The date of the first Aurora this
-    changeset was likely first active in as a YYYY-MM-DD value.
-    """
-    ctx = context.resource(mapping, 'ctx')
-    repo = context.resource(mapping, 'repo')
-
-    return _calculate_next_daily_release(repo, ctx, 'aurora')
-
-
 def template_nightlydate(context, mapping):
     """:nightlydate: Date information. The date of the first Nightly this
     changeset was likely first active in as a YYYY-MM-DD value.
     """
     ctx = context.resource(mapping, 'ctx')
     repo = context.resource(mapping, 'repo')
 
     return _calculate_next_daily_release(repo, ctx, 'central')
@@ -1384,19 +1364,17 @@ def extsetup(ui):
         revsetpredicate('tree(X)')(revset_tree)
         revsetpredicate('firstpushdate(DATE)')(revset_firstpushdate)
         revsetpredicate('firstpushtree(X)')(revset_firstpushtree)
         revsetpredicate('pushdate(DATE)')(revset_pushdate)
 
     if not ui.configbool('mozext', 'disable_local_database'):
         templatekeyword('firstrelease', requires={'ctx', 'repo', 'cache'})(template_firstrelease)
         templatekeyword('firstbeta', requires={'ctx', 'repo', 'cache'})(template_firstbeta)
-        templatekeyword('firstaurora', requires={'ctx', 'repo'})(template_firstaurora)
         templatekeyword('firstnightly', requires={'ctx', 'repo'})(template_firstnightly)
-        templatekeyword('auroradate', requires={'ctx', 'repo'})(template_auroradate)
         templatekeyword('nightlydate', requires={'ctx', 'repo'})(template_nightlydate)
         templatekeyword('firstpushuser', requires={'ctx', 'repo'})(template_firstpushuser)
         templatekeyword('firstpushtree', requires={'ctx', 'repo'})(template_firstpushtree)
         templatekeyword('firstpushtreeherder', requires={'ctx', 'repo'})(template_firstpushtreeherder)
         templatekeyword('firstpushdate', requires={'ctx', 'repo'})(template_firstpushdate)
         templatekeyword('pushdates', requires={'ctx', 'repo'})(template_pushdates)
         templatekeyword('pushheaddates', requires={'ctx', 'repo'})(template_pushheaddates)
         templatekeyword('trees', requires={'ctx', 'repo'})(template_trees)