[PATCH] "escape" .hg/hgrc in command doc strings for asciidoc (#1072)

Matt Mackall mpm at selenic.com
Fri Apr 4 10:06:03 CDT 2008


On Fri, 2008-04-04 at 08:42 +0200, Christian Ebert wrote:
> * Christian Ebert on Thursday, April 03, 2008 at 13:12:58 +0200
> > # HG changeset patch
> > # User Christian Ebert <blacktrash at gmx.net>
> > # Date 1207221128 -7200
> > # Node ID ebcbb901378edf57a750d8c5dd9c191efe6f5fe2
> > # Parent  da752414978770dd8aaa8f4303eac98563e4555d
> > "escape" .hg/hgrc in command doc strings for asciidoc (#1072)
> > 
> > .hg/hgrc at beginning of line screws up hg(1), issue 1072.
> > 
> > For consistency with the fixes in me1c1ef561d541, ba40e267762b
> > this patch uses repo/.hg/hgrc
> > 
> > Other workaround possibilities:
> > - rewrap, so .hg/hgrc is not at bol
> > - possibly quoting ".hg/hgrc" would work
> 
> The more one looks at it, the messier it gets ;)
> 
> hgrc.5.txt already uses <repo>/.hg/hgrc
> 
> Seems better to me, but more rewrapping needed.
> 
> How about .hgignore? .hgtags?
> 
> Rewrapping command doc strings to a smaller width is indicated as
> well, as in hg.1 they are displayed with a huge indent.
> 
> Do something about it? Or just wait until someone comes up with
> man format without asciidoc?

Going to man format is easy: take the existing output of asciidoc and
tidy it up. Ok, we still need some gendoc hacking..

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list