equal
deleted
inserted
replaced
1884 |
1884 |
1885 def _show(self, ctx, copies, matchfn, hunksfilterfn, props): |
1885 def _show(self, ctx, copies, matchfn, hunksfilterfn, props): |
1886 '''show a single changeset or file revision''' |
1886 '''show a single changeset or file revision''' |
1887 props = props.copy() |
1887 props = props.copy() |
1888 props.update(templatekw.keywords) |
1888 props.update(templatekw.keywords) |
1889 props['templ'] = self.t |
|
1890 props['ctx'] = ctx |
1889 props['ctx'] = ctx |
1891 props['repo'] = self.repo |
1890 props['repo'] = self.repo |
1892 props['ui'] = self.repo.ui |
1891 props['ui'] = self.repo.ui |
1893 props['index'] = index = next(self._counter) |
1892 props['index'] = index = next(self._counter) |
1894 props['revcache'] = {'copies': copies} |
1893 props['revcache'] = {'copies': copies} |
2661 templ = formatter.maketemplater(ui, spec) |
2660 templ = formatter.maketemplater(ui, spec) |
2662 cache = {} |
2661 cache = {} |
2663 if isinstance(displayer, changeset_templater): |
2662 if isinstance(displayer, changeset_templater): |
2664 cache = displayer.cache # reuse cache of slow templates |
2663 cache = displayer.cache # reuse cache of slow templates |
2665 props = templatekw.keywords.copy() |
2664 props = templatekw.keywords.copy() |
2666 props['templ'] = templ |
|
2667 props['cache'] = cache |
2665 props['cache'] = cache |
2668 def formatnode(repo, ctx): |
2666 def formatnode(repo, ctx): |
2669 props['ctx'] = ctx |
2667 props['ctx'] = ctx |
2670 props['repo'] = repo |
2668 props['repo'] = repo |
2671 props['ui'] = repo.ui |
2669 props['ui'] = repo.ui |