Mercurial > hg
comparison mercurial/logcmdutil.py @ 36441:27cd83152d31
templatekw: simply override {graphwidth} function by mapping variable
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 25 Feb 2018 14:12:34 +0900 |
parents | 7bc10d3f68b4 |
children | 6ad140dc4269 |
comparison
equal
deleted
inserted
replaced
36440:bb852a525633 | 36441:27cd83152d31 |
---|---|
887 copies.append((fn, rename[0])) | 887 copies.append((fn, rename[0])) |
888 edges = edgefn(type, char, state, rev, parents) | 888 edges = edgefn(type, char, state, rev, parents) |
889 firstedge = next(edges) | 889 firstedge = next(edges) |
890 width = firstedge[2] | 890 width = firstedge[2] |
891 displayer.show(ctx, copies=copies, | 891 displayer.show(ctx, copies=copies, |
892 _graphwidth=width, **pycompat.strkwargs(props)) | 892 graphwidth=width, **pycompat.strkwargs(props)) |
893 lines = displayer.hunk.pop(rev).split('\n') | 893 lines = displayer.hunk.pop(rev).split('\n') |
894 if not lines[-1]: | 894 if not lines[-1]: |
895 del lines[-1] | 895 del lines[-1] |
896 displayer.flush(ctx) | 896 displayer.flush(ctx) |
897 for type, char, width, coldata in itertools.chain([firstedge], edges): | 897 for type, char, width, coldata in itertools.chain([firstedge], edges): |