mozext: remove `hg pushlogsync` (Bug 1569734) r=smacleod
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 31 Jul 2019 21:08:46 +0000
changeset 7137 28b74bc3450b49158fc18fbc3ef4790cd7387fa2
parent 7136 4851a84dfe4d05f73d8665b05e8cb902f6126455
child 7138 3e1c648aeb62d5d9bcb7be870e3fb83a46658687
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 pushlogsync` (Bug 1569734) r=smacleod Running `hg pull` will sync the correct pushlog. Similar to `hg cloneunified`, this command was created in a time before we had a unified repo and unified pushlog on hg.mo. Differential Revision: https://phabricator.services.mozilla.com/D39956
hgext/mozext/__init__.py
--- a/hgext/mozext/__init__.py
+++ b/hgext/mozext/__init__.py
@@ -563,43 +563,16 @@ def treeherder(ui, repo, tree=None, rev=
     push_node = push.last_node
 
     url = treeherder_url(tree, push_node)
 
     import webbrowser
     webbrowser.get('firefox').open(url)
 
 
-@command('pushlogsync', [
-    ('', 'reset', False, _('Wipe and repopulate the pushlog database.'), ''),
-], _('hg pushlogsync'))
-def syncpushinfo(ui, repo, tree=None, **opts):
-    """Synchronize the pushlog information for all known Gecko trees.
-
-    The pushlog info contains who, when, and where individual changesets were
-    pushed.
-
-    After running this command, you can query for push information for specific
-    changesets.
-    """
-    if not repo.changetracker:
-        ui.warn('Local database appears to be disabled.')
-        return 1
-
-    if opts['reset']:
-        repo.changetracker.wipe_pushlog()
-        return
-
-    for i, tree in enumerate(sorted(REPOS)):
-        repo.changetracker.load_pushlog(tree)
-        makeprogress(ui, 'pushlogsync', i, total=len(REPOS))
-
-    makeprogress(ui, 'pushlogsync', None)
-
-
 def print_changeset_pushes(ui, repo, rev, all=False):
     if not repo.changetracker:
         ui.warn('Local database appears to be disabled.')
         return 1
 
     ctx = repo[rev]
     node = ctx.node()