This is an archive of the discontinued Mercurial Phabricator instance.

node: manually implement Debug
ClosedPublic

Authored by durin42 on Thu, May 5, 2:51 PM.

Details

Summary

I got too irritated today with the default Debug implementation of
hg::revlog::Node while playing with a new parser. This isn't quite
what I wanted, but it wasn't much code and it at least gives you
output that's easy to visually compare to a node.hex()ed identifier
from the Python side of things.

Sadly, this doesn't influence the output in lldb or the VSCode
debugger extension that uses lldb under the covers, but it at least
means debug prints are a little more useful.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

durin42 created this revision.Thu, May 5, 2:51 PM
Alphare accepted this revision.Mon, May 9, 11:38 AM
This revision is now accepted and ready to land.Mon, May 9, 11:38 AM
This revision was automatically updated to reflect the committed changes.