227 seen, state = [], asciistate() |
227 seen, state = [], asciistate() |
228 for rev, type, ctx, parents in dag: |
228 for rev, type, ctx, parents in dag: |
229 char = ctx.node() in showparents and '@' or 'o' |
229 char = ctx.node() in showparents and '@' or 'o' |
230 displayer.show(ctx) |
230 displayer.show(ctx) |
231 lines = displayer.hunk.pop(rev).split('\n')[:-1] |
231 lines = displayer.hunk.pop(rev).split('\n')[:-1] |
|
232 displayer.flush(rev) |
232 ascii(ui, state, type, char, lines, edgefn(seen, rev, parents)) |
233 ascii(ui, state, type, char, lines, edgefn(seen, rev, parents)) |
|
234 displayer.close() |
233 |
235 |
234 def graphlog(ui, repo, path=None, **opts): |
236 def graphlog(ui, repo, path=None, **opts): |
235 """show revision history alongside an ASCII revision graph |
237 """show revision history alongside an ASCII revision graph |
236 |
238 |
237 Print a revision history alongside a revision graph drawn with |
239 Print a revision history alongside a revision graph drawn with |