This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: add /obsgraph page that shows obsolescence history of a changeset (PoC)
AbandonedPublic

Authored by av6 on Jan 9 2019, 6:11 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

Feel free to ask questions, I suspect some chunks would need a comment (either
in review or in code) to explain what's going on there.

I'll start working on the other hgweb themes later, when I get feedback on this
series.

Color choices are from the current canvas-based graph, but that probably will
change when I find a better color scheme.

I'm revisiting the idea of making graph in hgweb be SVG as opposed to canvas,
and this new page, that is separate from /graph, looks like a good testing
field: locally I have replaced canvas graph with this new SVG graph on /graph
page and it works fine and looks better, and I hope to improve the visuals even
more. The data structures are the same (for now, at least), and SVGGraph in
mercurial.js is mostly a copy of the current Graph class.

Tooltips for different graph nodes currently work only in Chromium and similar
browsers, but it's still better than no tooltips (on cavnas).

You can see obsgraph live on http://hg-test.dwimlabs.net/

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

av6 created this revision.Jan 9 2019, 6:11 AM
durin42 added a subscriber: durin42.Jan 9 2019, 2:34 PM

Without looking deeply at the implementation (I basically trust you to do reasonable things here), I like the feature existing and poking around briefly on obsdemo looks reasonable...

av6 abandoned this revision.Jan 30 2019, 8:34 AM

Okay then, I'll work on a non-PoC version of this.