Bug 1010082 - Fix |mach dxr| URL; f=erikrose
authorEd Morley <emorley@mozilla.com>
Wed, 14 May 2014 16:26:17 +0100
changeset 202498 2ba9cda30f62362724f4b7e5f7a01464119a8ce0
parent 202497 269ba1d7f4df3323b1495bc2a7f266c06ffb1236
child 202499 40bc628f60c4a9e8c69d207548004ef34d82453d
push idunknown
push userunknown
push dateunknown
bugs1010082
milestone32.0a1
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)