mozext: remove extension-loaded `reviewboard` path (Bug 1569734) r=smacleod
authorConnor Sheehan <sheehan@mozilla.com>
Thu, 01 Aug 2019 15:26:23 +0000
changeset 7142 1d53e657414f19da4a383320ad01f58330b35633
parent 7141 5e857d4f3091d514c2a104502c816f41d5299dcc
child 7143 709c897f2444dcfda27725af607cdf2cfade5d0d
push id3552
push usercosheehan@mozilla.com
push dateThu, 01 Aug 2019 15:26:51 +0000
treeherderversion-control-tools@1d53e657414f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmacleod
bugs1569734
mozext: remove extension-loaded `reviewboard` path (Bug 1569734) r=smacleod This is obviously not needed, and slightly dangerous. Differential Revision: https://phabricator.services.mozilla.com/D40079
hgext/mozext/__init__.py
--- a/hgext/mozext/__init__.py
+++ b/hgext/mozext/__init__.py
@@ -1586,14 +1586,8 @@ def reposetup(ui, repo):
             makeprogress(ui, 'changeset', None)
 
 
     repo.__class__ = remotestrackingrepo
 
     if ui.configbool('mozext', 'reject_pushes_with_repo_names'):
         ui.setconfig('hooks', 'prepushkey.reject_repo_names',
             reject_repo_names_hook)
-
-    # Set up a specially named path so reviewboard resolves this repo to
-    # mozilla-central.
-    if not ui.config('paths', 'reviewboard'):
-        uri = resolve_trees_to_uris(['central'])[0][1]
-        ui.setconfig('paths', 'reviewboard', uri)