Bug 1010082 - Fix |mach dxr| URL; f=erikrose
authorEd Morley <emorley@mozilla.com>
Wed, 14 May 2014 16:26:17 +0100
changeset 183133 2ba9cda30f62362724f4b7e5f7a01464119a8ce0
parent 183132 269ba1d7f4df3323b1495bc2a7f266c06ffb1236
child 183134 40bc628f60c4a9e8c69d207548004ef34d82453d
push id43475
push useremorley@mozilla.com
push dateWed, 14 May 2014 15:26:31 +0000
treeherdermozilla-inbound@2ba9cda30f62 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1010082
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1010082 - Fix |mach dxr| URL; f=erikrose
tools/mach_commands.py
--- a/tools/mach_commands.py
+++ b/tools/mach_commands.py
@@ -32,17 +32,17 @@ class SearchProvider(object):
         webbrowser.open_new_tab(uri)
 
     @Command('dxr', category='misc',
         description='Search for something in DXR.')
     @CommandArgument('term', nargs='+', help='Term(s) to search for.')
     def dxr(self, term):
         import webbrowser
         term = ' '.join(term)
-        uri = 'http://dxr.mozilla.org/search?tree=mozilla-central&q=%s' % term
+        uri = 'http://dxr.mozilla.org/mozilla-central/search?q=%s&redirect=true' % term
         webbrowser.open_new_tab(uri)
 
     @Command('mdn', category='misc',
         description='Search for something on MDN.')
     @CommandArgument('term', nargs='+', help='Term(s) to search for.')
     def mdn(self, term):
         import webbrowser
         term = ' '.join(term)