]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/research.py
Use CLI installer for MediaWiki 1.17.0 and later.
[wizard.git] / wizard / command / research.py
index a95c32fcd07f7333a7f11600c6d51b9ca6cb9dc9..75b8783c07f0a7a0cea41b996663c061ff79e901 100644 (file)
@@ -8,8 +8,7 @@ from wizard import app, command, deploy, shell, util
 def main(argv, baton):
     options, show = parse_args(argv, baton)
     appname = show[0]
-    application = app.applications()[appname]
-    sh = shell.Shell()
+    application = app.getApplication(appname)
     deploys = deploy.parse_install_lines(show, options.versions_path)
     stats = {}
     iffy = 0
@@ -28,7 +27,7 @@ def main(argv, baton):
                 d.verifyConfigured()
                 with util.ChangeDirectory(d.location):
                     results = []
-                    out = sh.safeCall('git', 'diff', '--numstat', d.app_version.scripts_tag, strip=True)
+                    out = shell.safeCall('git', 'diff', '--numstat', d.app_version.wizard_tag, strip=True)
                     total += 1
                     for line in out.split("\n"):
                         added, deleted, filename = line.split(None, 3)