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