[PATCH 0 of 1 DRAFT] Blackbox, first steps
Nicolas Dumazet
nicdumz at gmail.com
Tue Oct 19 04:36:31 CDT 2010
Hello folks.
I wanted to share my progress with blackbox extension.
- My goals:
* User-oriented log. Readable to non-developers.
* Useful for learning after user mistakes
* Easily detects PEBKACs when pasted in bts
* And of course, reproductible scenarios in case
of bugs
But really I want to make it clear that I am not
trying to write a bzr-like "put every info/debug/blather log
in there and you shall understand the meaning of life and
universe after going through 42M of logs".
- ui vs. repo questions:
I'm logging things. So naturally I am subclassing ui objects.
But hey, it _is_ hard to access a repo object from an ui object.
(I need the object to access path/to/.hg/blackbox). Should I
really subclass ui object? As you can see, it forces me to wrap
several times the ui object, depending on where we need it.
During my first attempt I subclassed repo objects: I only needed
to wrap them once, in reposetup.
But both solutions are not so pretty: any better suggestions?
- wdir parent:
Henrik mentioned that when he was logging things, he needed
to include the bits of `hg sum` in the logs to have anything
of use. In particular, he mentioned wdir parents. Henrik,
could you clarify where it would be useful/in which cases?
Do we have cases where it's necessary for our users?
Any other quirks? Things that are missing and that you'd want in?
-Nicolas
More information about the Mercurial-devel
mailing list