mozext: remove `bz_available` global variable (Bug 1569734) r=smacleod
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 31 Jul 2019 21:08:41 +0000
changeset 7133 790b45463fd4c7c21e9bcc9872d82a62ddc85f39
parent 7132 a8e3d70807b08f54731dbabb91fbd081f1cb148c
child 7134 4ed18e15bb1006047e35cb31f066e853ee915c48
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 `bz_available` global variable (Bug 1569734) r=smacleod It is unused at the moment. Differential Revision: https://phabricator.services.mozilla.com/D39952
hgext/mozext/__init__.py
--- a/hgext/mozext/__init__.py
+++ b/hgext/mozext/__init__.py
@@ -344,18 +344,16 @@ with demandimport.deactivated():
         REPOS,
         resolve_trees_to_official,
         resolve_trees_to_uris,
         resolve_uri_to_tree,
         treeherder_url,
         TREE_ALIASES,
     )
 
-bz_available = False
-
 testedwith = '4.6 4.7 4.8 4.9 5.0'
 minimumhgversion = '4.6'
 buglink = 'https://bugzilla.mozilla.org/enter_bug.cgi?product=Developer%20Services&component=Mercurial%3A%20mozext'
 
 cmdtable = {}
 
 command = registrar.command(cmdtable)
 
@@ -1337,23 +1335,16 @@ def template_dates(context, mapping, arg
     if len(args) > 2:
         sep = templatefilters.stringify(args[2][0](context, mapping,
             args[2][1]))
 
     return sep.join(util.datestr(d, fmt) for d in args[0][0](context, mapping,
         args[0][1]))
 
 def extsetup(ui):
-    global bz_available
-    try:
-        extensions.find('bzexport')
-        bz_available = True
-    except KeyError:
-        pass
-
     extensions.wrapfunction(exchange, 'pull', wrappedpull)
     extensions.wrapfunction(exchange, 'push', wrappedpush)
     extensions.wrapfunction(exchange, '_pullobsolete', exchangepullpushlog)
     extensions.wrapfunction(hg, '_peerorrepo', wrapped_peerorrepo)
 
     if not ui.configbool('mozext', 'disable_local_database'):
         revsetpredicate('pushhead([TREE])')(revset_pushhead)
         revsetpredicate('tree(X)')(revset_tree)