Merge with stable
authorChristian Ebert <blacktrash@gmx.net>
Thu, 13 Mar 2014 11:19:32 +0000
changeset 1356 d9c3f8002e7c
parent 1352 9dcd045229b4 (current diff)
parent 1355 238b6ca6d2bb (diff)
child 1360 e7fa36b2bd23
Merge with stable
--- a/hgkw/keyword.py	Tue Mar 04 17:24:44 2014 +0000
+++ b/hgkw/keyword.py	Thu Mar 13 11:19:32 2014 +0000
@@ -217,9 +217,8 @@
         '''Replaces keywords in data with expanded template.'''
         def kwsub(mobj):
             kw = mobj.group(1)
-            ct = cmdutil.changeset_templater(self.ui, self.repo,
-                                             False, None, '', False)
-            ct.use_template(self.templates[kw])
+            ct = cmdutil.changeset_templater(self.ui, self.repo, False, None,
+                                             self.templates[kw], '', False)
             self.ui.pushbuffer()
             ct.show(ctx, root=self.repo.root, file=path)
             ekw = templatefilters.firstline(self.ui.popbuffer())
--- a/tests/run-tests.py	Tue Mar 04 17:24:44 2014 +0000
+++ b/tests/run-tests.py	Thu Mar 13 11:19:32 2014 +0000
@@ -479,10 +479,10 @@
            ' build %(compiler)s --build-base="%(base)s"'
            ' install --force --prefix="%(prefix)s" --install-lib="%(libdir)s"'
            ' --install-scripts="%(bindir)s" %(nohome)s >%(logfile)s 2>&1'
-           % dict(exe=sys.executable, py3=py3, pure=pure, compiler=compiler,
-                  base=os.path.join(HGTMP, "build"),
-                  prefix=INST, libdir=PYTHONDIR, bindir=BINDIR,
-                  nohome=nohome, logfile=installerrs))
+           % {'exe': sys.executable, 'py3': py3, 'pure': pure,
+              'compiler': compiler, 'base': os.path.join(HGTMP, "build"),
+              'prefix': INST, 'libdir': PYTHONDIR, 'bindir': BINDIR,
+              'nohome': nohome, 'logfile': installerrs})
     vlog("# Running", cmd)
     if os.system(cmd) == 0:
         if not options.verbose: