[PATCH] help: move topic "files" from /doc/hg.1.txt to /mercurial/help/ (issue2760)

yun lee yun.lee.bj at gmail.com
Thu May 5 08:59:07 CDT 2011


> As for the long-term goal, then I'm a bit more unsure: we haven't made a
> plan for which topics we should have. For the man pages:
>
> * The hg(1) man page is mostly empty -- done!
>
> * The hgignore(5) man page was moved yesterday -- great!
>
> * The hgrc(5) man page should be moved into mercurial/help too since
>  people don't know about this manpage on Windows.
>
>  Maybe it could be merged with the config help topic?
Yes, I agree on merging hgrc(5) . And I think it's not necessary to
modify the hg.1.txt, as it just contains some simple descriptions, and
the rich content has been contained in concrete files such as hg(1),
hgignore(5) and hgrc(5).

>
>  Later, we should see if we could generate the help for each config
>  setting programmatically so that we are sure it will be complete, in
>  the same was as we do it for commands and command line options.
I don't understand, do you mean sections in hgrc by  "each config
setting", and what do you mean by "commands and command line options"?

>
> As for help topics shadowing commands with the same name, then I suggest
> we try to avoid it but also add a --topic/-t switch to the help command
> so that you can do 'hg help -t tags' and get a (hypothetical) help topic
> about tags. That would probably explain how tags are stored.
>
> There has been patches for making 'hg help --extension relink' show the
> relink module docstring instead of the docstring for the relink command.
> I just looked and I see that our extensions now intentionally have
> little information in the module docstring. The patchbomb extension is
> an exception, but it cleverly defines a command with the name email so
> that both 'hg help patchbomb' and 'hg help email' works.
>
>
> --
> Martin Geisler
>
> aragost Trifork
> Professional Mercurial support
> http://aragost.com/mercurial/
>



-- 
Yun Lee


More information about the Mercurial-devel mailing list