Show More
@@ -897,12 +897,14 b' def perfmoonwalk(ui, repo, **opts):' | |||
|
897 | 897 | timer(moonwalk) |
|
898 | 898 | fm.end() |
|
899 | 899 | |
|
900 |
@command('perftemplating', |
|
|
901 | def perftemplating(ui, repo, *revs, **opts): | |
|
900 | @command('perftemplating', | |
|
901 | [('r', 'rev', [], 'revisions to run the template on'), | |
|
902 | ] + formatteropts) | |
|
903 | def perftemplating(ui, repo, **opts): | |
|
902 | 904 | nullui = ui.copy() |
|
903 | 905 | nullui.fout = open(os.devnull, 'wb') |
|
904 | 906 | nullui.disablepager() |
|
905 | ||
|
907 | revs = opts.get('rev') | |
|
906 | 908 | def format(): |
|
907 | 909 | commands.log(nullui, repo, rev=revs, date='', user='', |
|
908 | 910 | template='{date|shortdate} [{rev}:{node|short}]' |
General Comments 0
You need to be logged in to leave comments.
Login now