diff -r 32c278eb876f -r f1c54d003327 hgext/show.py --- a/hgext/show.py Thu Dec 21 21:29:06 2017 +0900 +++ b/hgext/show.py Thu Dec 21 22:05:30 2017 +0900 @@ -252,7 +252,9 @@ # our simplicity and the customizations required. # TODO use proper graph symbols from graphmod - shortesttmpl = formatter.maketemplater(ui, '{shortest(node, %d)}' % nodelen) + tres = formatter.templateresources(ui, repo) + shortesttmpl = formatter.maketemplater(ui, '{shortest(node, %d)}' % nodelen, + resources=tres) def shortest(ctx): return shortesttmpl.render({'ctx': ctx, 'node': ctx.hex()}) @@ -438,7 +440,10 @@ If we fail to do this, a value of e.g. ``10023`` could mean either revision 10023 or node ``10023abc...``. """ - tmpl = formatter.maketemplater(repo.ui, '{shortest(node, %d)}' % minlen) + tres = formatter.templateresources(repo.ui, repo) + tmpl = formatter.maketemplater(repo.ui, '{shortest(node, %d)}' % minlen, + resources=tres) + lens = [minlen] for rev in revs: ctx = repo[rev]