469 copies.append((fn, rename[0])) |
469 copies.append((fn, rename[0])) |
470 revmatchfn = None |
470 revmatchfn = None |
471 if filematcher is not None: |
471 if filematcher is not None: |
472 revmatchfn = filematcher(ctx.rev()) |
472 revmatchfn = filematcher(ctx.rev()) |
473 displayer.show(ctx, copies=copies, matchfn=revmatchfn) |
473 displayer.show(ctx, copies=copies, matchfn=revmatchfn) |
474 lines = displayer.hunk.pop(rev).split('\n')[:-1] |
474 lines = displayer.hunk.pop(rev).split('\n') |
|
475 if not lines[-1]: |
|
476 del lines[-1] |
475 displayer.flush(rev) |
477 displayer.flush(rev) |
476 edges = edgefn(type, char, lines, seen, rev, parents) |
478 edges = edgefn(type, char, lines, seen, rev, parents) |
477 for type, char, lines, coldata in edges: |
479 for type, char, lines, coldata in edges: |
478 ascii(ui, state, type, char, lines, coldata) |
480 ascii(ui, state, type, char, lines, coldata) |
479 displayer.close() |
481 displayer.close() |