[PATCH 0 of 8] extensions: overhaul on descriptions

Martin Geisler mg at lazybytes.net
Mon Jul 6 18:19:23 CDT 2009

Cédric Duval <cedricduval at free.fr> writes:

> This patch series improves the handling of extensions help texts, in
> particular:
>  - patches 1 to 5: refactoring, and paving the way for the following
>    patches, progressively moving code into a new module extdoc used
>    both by hg and external tools
>  - patches 6 and 7: support for a pre-processed list of extensions, as a
>    fallback in case descriptions can't be fetched at runtime (issue1708)

While looking at the patches I began wondering how much they actually
change. It turns out to be less than I expected:

% hg diff -r qbase:qtip | diffstat
 .hgignore               |    1 
 Makefile                |   10 ++++++--
 doc/gendoc.py           |   13 ++++++++++-
 mercurial/extdoc.py     |   40 ++++++++++++++++++++++++++++++++++
 mercurial/extensions.py |   56 +++++++++++++-----------------------------------
 setup.py                |   22 ++++++++++++++++++
 6 files changed, 99 insertions(+), 43 deletions(-)

I think I would prefer if some of the refactor-first-then-move patches
were folded together into a move-and-refactor patch. But maybe that's
just me?

>  - patch 8: new generated section in the hg.1 presenting each extension

After asking a ton of questions in my other mails, let me just finish by
saying that it actually works... :-) It's very cool to have a
description of all the extensions in the hg.1 man page.

Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090707/2e77fe01/attachment.pgp 

More information about the Mercurial-devel mailing list