This is an archive of the discontinued Mercurial Phabricator instance.

graph: add outputgraph() function, called by ascii() to print the graph to the ui.
ClosedPublic

Authored by johnstiles on May 25 2018, 2:14 AM.

Details

Summary

This allows a cleaner entrypoint for extensions to tweak the
graph output without needing to rewrite all of ascii(), or needing
to manually guess where the graph nodes/edges end and the rev
note portion begins.

This patch does not affect graph output or behavior in any way.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

johnstiles created this revision.May 25 2018, 2:14 AM
spectral accepted this revision.May 25 2018, 3:18 PM
spectral added a subscriber: spectral.

lgtm, and as long as there's no test differences seems fine. (I don't have ability to accept the patch, and this is from another Googler anyway, so this is just first-stage review).

pulkit accepted this revision.May 25 2018, 3:37 PM
This revision was automatically updated to reflect the committed changes.