Bug 809650 - Handle mach @CommandArguments in the right order. DONTBUILD (NPOTB) r=gps
authorCameron McCormack <cam@mcc.id.au>
Thu, 08 Nov 2012 10:21:43 +1100
changeset 112520 182185d15e6bcd3730a46a58bc6d8ad28b886d5f
parent 112519 bb4d68b03164eb7480c1a2b5a652d75c50084f18
child 112598 c652c39732f8461406ad56965b1a0dd6daede27b
push id23829
push usercmccormack@mozilla.com
push dateWed, 07 Nov 2012 23:22:05 +0000
treeherdermozilla-central@182185d15e6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs809650
milestone19.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 809650 - Handle mach @CommandArguments in the right order. DONTBUILD (NPOTB) r=gps
python/mach/mach/decorators.py
--- a/python/mach/mach/decorators.py
+++ b/python/mach/mach/decorators.py
@@ -102,17 +102,17 @@ class CommandArgument(object):
             pass
     """
     def __init__(self, *args, **kwargs):
         self._command_args = (args, kwargs)
 
     def __call__(self, func):
         command_args = getattr(func, '_mach_command_args', [])
 
-        command_args.append(self._command_args)
+        command_args.insert(0, self._command_args)
 
         func._mach_command_args = command_args
 
         return func
 
 def SettingsProvider(cls):
     """Class decorator to denote that this class provides Mach settings.