mozext: remove `hg moztrees` (Bug 1569734) r=smacleod
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 31 Jul 2019 21:08:56 +0000
changeset 7139 e8bf67866f28265ada769fa62edd61faa9a9e19e
parent 7138 3e1c648aeb62d5d9bcb7be870e3fb83a46658687
child 7140 0e60a3fd054184576544c4c15227f9c327e7e7b0
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 `hg moztrees` (Bug 1569734) r=smacleod At this point it prints out so much information about so many dead trees that it can't possbly be useful. Using the `firefoxtree` extension is highly preferred, where there is a `fxheads` command to see the state of various trees. Differential Revision: https://phabricator.services.mozilla.com/D39958
hgext/mozext/__init__.py
--- a/hgext/mozext/__init__.py
+++ b/hgext/mozext/__init__.py
@@ -475,34 +475,16 @@ def exchangepullpushlog(orig, pullop):
         pushes.append((int(pushid), who, int(when), nodes))
 
     if pushes:
         repo.changetracker.add_pushes(tree, pushes)
         repo.ui.status('added %d pushes\n' % len(pushes))
 
     return res
 
-@command('moztrees', [], _('hg moztrees'), norepo=True)
-def moztrees(ui, **opts):
-    """Show information about Mozilla source trees."""
-    longest = max(len(tree) for tree in REPOS.keys())
-    ui.write('%s  %s\n' % (_('Repo').rjust(longest), _('Aliases')))
-
-    for name in sorted(REPOS):
-        aliases = []
-        for alias, targets in TREE_ALIASES.items():
-            if len(targets) > 1:
-                continue
-
-            if targets[0] == name:
-                aliases.append(alias)
-
-        ui.write('%s: %s\n' % (name.rjust(longest),
-            ', '.join(sorted(aliases))))
-
 
 @command('treestatus', [], _('hg treestatus [TREE] ...'), norepo=True)
 def treestatus(ui, *trees, **opts):
     """Show the status of the Mozilla repositories.
 
     If trees are open, it is OK to land code on them.
 
     If trees require approval, you'll need to obtain approval from