7 # GNU General Public License version 2 or any later version. |
7 # GNU General Public License version 2 or any later version. |
8 |
8 |
9 '''command to display statistics about repository history''' |
9 '''command to display statistics about repository history''' |
10 |
10 |
11 from mercurial.i18n import _ |
11 from mercurial.i18n import _ |
12 from mercurial import patch, cmdutil, scmutil, util, templater, commands |
12 from mercurial import patch, cmdutil, scmutil, util, commands |
13 from mercurial import encoding |
13 from mercurial import encoding |
14 import os |
14 import os |
15 import time, datetime |
15 import time, datetime |
16 |
16 |
17 cmdtable = {} |
17 cmdtable = {} |
18 command = cmdutil.command(cmdtable) |
18 command = cmdutil.command(cmdtable) |
19 testedwith = 'internal' |
19 testedwith = 'internal' |
20 |
20 |
21 def maketemplater(ui, repo, tmpl): |
21 def maketemplater(ui, repo, tmpl): |
22 tmpl = templater.parsestring(tmpl, quoted=False) |
|
23 try: |
22 try: |
24 t = cmdutil.changeset_templater(ui, repo, False, None, tmpl, |
23 t = cmdutil.changeset_templater(ui, repo, False, None, tmpl, |
25 None, False) |
24 None, False) |
26 except SyntaxError, inst: |
25 except SyntaxError, inst: |
27 raise util.Abort(inst.args[0]) |
26 raise util.Abort(inst.args[0]) |