Commit Graph

535 Commits

Author SHA1 Message Date
Martin Geisler
63ce42a571 gendoc: do not strip 'hg ' from synopsis
This was an old left-over from when the synopsis line was used as a
header. We now have the command name by itself as the header and the
synopsis as a literal block immediately after..
2010-10-23 00:18:10 +02:00
Martin Geisler
526cbba402 gendoc: support multi-line synopses 2010-10-23 00:11:39 +02:00
Martin Geisler
fc7340c8f7 gendoc: re-add indentation to global option table
The indentation was lost in 5a8c9ce7fb90.
2010-10-23 00:01:09 +02:00
Martin Geisler
7e2dd66daa merge-tools: fixed typos
Spotted by Patrick Mézard.
2010-10-21 21:34:30 +02:00
Erik Zielke
40bca26fc6 gendoc: added styling for extension TOC
Uses CSS3 columns for the list of extensions, so it is not just a long
list of extension names.
2010-10-20 17:47:46 +02:00
Erik Zielke
efadd693cc gendoc: automatically create help for default extensions.
Adds a section in the hg.1 manpage and corresponding hg.1.html
file. Each extension is listed with its module docstring, followed by
the commands defined by that extendsion.

Creates help for extensions by extracting doc strings from the extension modules
and its commands.
2010-10-20 17:45:09 +02:00
Erik Zielke
6a81d064ce gendoc: dedent documentation from docstrings
When getting docstrings from the source they are indented to look good
in the code. This indentation interferes with how the text is parsed
by rst. Therefore this indentation is removed.
2010-10-19 13:50:03 +02:00
Martin Geisler
d6c5b6360c gendoc: add subsection for each command 2010-10-20 18:08:37 +02:00
Martin Geisler
6cbb755d15 gendoc: move section commands to module scope 2010-10-20 18:07:50 +02:00
Erik Zielke
9ef6ae89b7 help: help topic for merge tools
I have made a help topic for merge tools. The text in the topic is
based on the http://mercurial.selenic.com/wiki/MergeProgram page from
the wiki, along with some extra information on the internal merge tools.
2010-10-20 16:54:34 +02:00
Erik Zielke
b55d97e2ae gendoc: refactor get_cmd
Refactors the get_cmd to take the table as argument, instad
of just referencing the global table, thereby enabling reuse
for extension command tables.
2010-10-18 14:37:52 +02:00
Adrian Buehlmann
bdf7d7f1bc doc: add [format] dotencode description 2010-10-10 23:32:09 +02:00
Mads Kiilerich
665d2722d8 doc: clarify that https cert verification requires web.cacerts 2010-10-01 00:48:50 +02:00
Anthony Foiani
5a82d7f2a7 doc: clarify smtp.password usage 2010-09-23 00:27:04 -06:00
Martin Geisler
db0d34b21b url: limit expansion to safe auth keys (Issue2328)
Mads Kiilerich pointed out that 1e4ade283b02 was too eager since the
prefix and password keys may contain $-signs. So this only add the
username to the list of keys that are expanded.

This also updates the documentation to match.
2010-08-13 10:53:10 +02:00
Martin Geisler
a7c1749596 hgrc.5: fix "hg hg status" -> "hg status" 2010-08-13 10:13:38 +02:00
Nicolas Dumazet
0e9b05da3e runrst: try to be more helpful if docutils is not installed 2010-07-30 14:41:47 +09:00
Nicolas Dumazet
4a63431eda doc: remove has_key usage in hgmanpage 2010-07-22 14:33:50 +09:00
Nicolas Dumazet
0616cfa31f gendoc: remove callable usage (check-code) 2010-07-22 14:30:29 +09:00
Mads Kiilerich
8a38c3ba07 doc: make sure we use our own code for generating man pages
docutils would in some situations pick up its own manpage.py instead of
doc/manpage.py. Renaming to hgmanpage.py makes it less ambiguous.
2010-07-21 17:51:37 +02:00
Chad Dombrova
22bbfbd44a provide pre- and post- hooks with parsed command line arguments.
python hooks are passed two new keyword arguments:
- opts: a dict of options; unsepcified options are set to their default
- pats: a list of arguments

shell hooks receive two new variables containing string representations
of the above data:
- $HG_OPTS
- $HG_PATS

for example, the opts and pats for 'hg -f v1.1' would be:
{'force': True, 'message': '', 'rev': '', 'user': '', 'date': '', 'local': None, 'remove': None, 'mq': None}
['v1.1']
2010-06-10 09:32:19 -07:00
FUJIWARA Katsunori
ce06b102df help: show value requirement and multiple occurrence of options
this helps users to know what kind of option is:

  - no value is required(flag option)
  - value is required
  - value is required, and multiple occurrences are allowed

each kinds are shown as below:

 -f --force              force push
 -e --ssh CMD            specify ssh command to use
 -b --branch BRANCH [+]  a specific branch you would like to push

if one or more 3rd type options are shown, explanation for '[+]' mark
is also shown as footnote.
2010-06-06 17:25:00 +09:00
Matt Mackall
3daed7cd59 hgrc: improve docs for the trusted section 2010-06-04 20:13:51 -05:00
Martin Geisler
ae18c6a910 win32text: mark this extension as deprecated 2010-06-02 14:54:25 +02:00
Martin Geisler
bb828f2f9b doc: document expansion of %include and ui.username 2010-05-27 10:37:14 +02:00
Martin Geisler
f8280fc5b0 Merge with stable 2010-05-25 18:45:44 +02:00
Angel Ezquerra
9be5ff2737 doc: clarify that sections can be split 2010-05-25 18:19:40 +02:00
Angel Ezquerra
08d2753759 doc: clarify that keys can be overridden 2010-05-25 18:19:16 +02:00
David Champion
b8cccccefd merge: tool.check = prompt will force an interactive merge check
tool.check = prompt can be used when the exit status of a merge
tool is unreliable but an explicit user signoff on the merge result is
acceptable.
2010-05-10 11:04:56 -05:00
David Champion
884303ae82 merge: introduce tool.check parameter
tool.check is a list of check options, and can be used in place of
tool.checkchanged and tool.checkconflicts:

Equivalences:
tool.checkchanged = yes
tool.checkconflicts = no
tool.check = changed

tool.checkchanged = no
tool.checkconflicts = yes
tool.check = conflicts

tool.checkchanged = yes
tool.checkconflicts = yes
tool.check = changed, conflicts

Add _toollist() wrapper for ui.configlist() to implement this consistently.

checkchanged and checkconflicts are still supported, but check is
preferred for implementing new check options.
2010-05-10 11:04:56 -05:00
David Champion
14b32f640c merge: tool.premerge=keep will leave premerge markers in $local 2010-04-21 11:57:45 -05:00
Matt Mackall
ae3b272f12 docs: document default for web.encoding 2010-04-26 11:03:40 -05:00
Henrik Stuart
1c5ca1f5d8 ui: support quotes in configlist (issue2147)
Several places that use ui.configlist, predominantly in authentication
scenarios need to interface with systems that can contain spaces in usernames
(e.g. when client certificates are usernames, or Windows usernames).

This changeset introduces a parser that supports quoting of strings, and
escape quotation marks that get decoded into a single quotation mark that
adopts the usual behavior one would expect from quoting strings. The Python
library shlex module is not used, on purpose, as that raises if it cannot
match quotation marks in the given input.
2010-04-25 17:38:41 +02:00
Martin Geisler
68483a49bd Merge with stable 2010-04-25 17:11:50 +02:00
Martin Geisler
aa7bc3741f hgrc.5: mention lists as well 2010-04-25 17:11:36 +02:00
Martin Geisler
e334ff8231 Merge with stable 2010-04-25 16:46:44 +02:00
Martin Geisler
61ede1530c hgrc.5: describe form of config values 2010-04-25 16:46:26 +02:00
Martin Geisler
886975f7a6 doc: add links from hgrc.5 to hg.1 2010-04-23 09:55:47 +02:00
Martin Geisler
7f5b9a0a43 doc: make links for hg role
The system has a bit of smartness:

  :hg:`update`     -> links to hg.1.html#update
  :hg:`help diffs` -> links to hg.1.html#diffs
2010-04-23 09:53:25 +02:00
Martin Geisler
1d06245892 doc, minirst: support hg interpreted text role 2010-04-22 10:04:53 +02:00
Martin Geisler
ce3c2717e9 doc: add generic frontend to rst2man and rst2html
This will allow us to easily register new roles and directives.
2010-04-22 09:57:04 +02:00
Nicolas Dumazet
7f1a963829 pylint, pyflakes: remove unused or duplicate imports 2010-04-14 17:58:10 +09:00
Martin Geisler
01d542a46d doc/ja: remove old Japanese man page translations
They were added way back in 2005 and haven't been updated since. They
are no longer referenced by the Makefiles at upper levels and have not
been shipped with a recent version of Mercurial.
2010-03-02 21:34:24 +01:00
Wagner Bruna
7733a703e9 doc/Makefile: fix doc generation when LANGUAGE is set 2010-02-24 13:47:59 -03:00
Steve Borho
aad9ecf6aa hgrc.5: document use of environment variables on Windows
This feature was introduced in c7a5a2c7063a
2010-02-15 20:28:42 -06:00
Matt Mackall
f4a529722f hgrc: update docs for the server section 2010-02-11 17:13:22 -06:00
Henrik Stuart
534ea9a0f8 doc: add missing documentation for http_proxy.always 2010-02-11 21:11:59 +01:00
Matt Mackall
a2acbc421b fix up a bunch of check-code warnings 2010-02-09 14:12:22 -06:00
Henrik Stuart
2d2f851cb8 url: SSL server certificate verification using web.cacerts file (issue1174) 2010-02-10 20:27:46 +01:00
Steve Borho
4bb4d09720 hgrc.5: Fix a typo 2010-02-08 06:24:34 -06:00
Steve Borho
9a5cb3aaab win32: allow hgrc.d on Windows 2010-02-07 05:34:22 -06:00
Martin Geisler
8664a6b426 Merge with stable. 2010-01-29 01:04:38 +01:00
Christian Ebert
42dde8faf8 hgrc.5: whether bcc is prompted for is up to the extension
There is no code in mail.py that forbids an extension to prompt for bcc.
2010-01-28 10:38:29 +00:00
Matt Mackall
8d99be19f0 many, many trivial check-code fixups 2010-01-25 00:05:27 -06:00
Matt Mackall
cd3ef170f7 Merge with stable 2010-01-19 22:45:09 -06:00
Matt Mackall
595d66f424 Update license to GPLv2+ 2010-01-19 22:20:08 -06:00
Mads Kiilerich
3b9db3f9d9 Update test and man page for multiple matching encode/decode filters 2010-01-05 03:20:45 +01:00
Pascal Quantin
9e8542ebfd Update copyright year to 2010 2010-01-04 23:45:45 +01:00
Mads Kiilerich
30c9ad5ebc doc/Makefile: Fix rst2html detection
Displaying the output from the failing call to "which" didn't prevent
make from doing stupid things later. We now only search for "rst2html"
and fallback to "rst2html.py". If neither name is found, make will
eventually abort when we try to use $(RST2HTML).
2009-12-16 23:59:50 +01:00
Martin Geisler
b076a1e802 doc/Makefile: ensure C locale
The man pages can actually be translated by building them in a
different locale. However, the man pages contain internal links to
certain sections, and when the section titles are translated, the
links change too. So it is currently not recommended to build the man
pages in anything by the "C" locale.
2009-12-01 00:43:21 +01:00
Nicolas Dumazet
eb99c4418d doc/style: add orange border color to notes 2009-11-11 21:52:02 +01:00
Martin Geisler
8053426d1c hgrc.5: mark some words as inline literals 2009-11-11 21:45:13 +01:00
Martin Geisler
e4de4738b7 hgignore.5: fix typo 2009-11-11 21:29:35 +01:00
Martin Geisler
0d2ce52580 doc/style: fix typo in comment (by timeless) 2009-11-11 21:16:20 +01:00
Yuya Nishihara
4a0e94b4d0 doc/style: use default font color specified by user
* it's bad to specify only foreground color:
  http://www.w3.org/QA/Tips/color
* some people prefer dark background
* `color: #111' is mostly the same as `color: black',
  which is the default of almost all popular browsers.

so it's preferable to delete `color: #111', rather than adding
`background-color: white'.
2009-11-10 21:48:10 +09:00
Martin Geisler
d8dd14a3aa hgrc.5: oft-requested "hg update" hook example 2009-11-11 20:08:26 +01:00
Martin Geisler
d1b18c5ccd doc: fix language in CSS comments (by timeless) 2009-11-09 23:47:24 +01:00
Martin Geisler
60d8cf780e doc: uppercase first letter in HTML man pages 2009-11-08 17:27:01 +01:00
Yuya Nishihara
d6d2fe0234 doc: styles for man page, which suit with the mercurial website
designed loosely based on:
http://mercurial.selenic.com/css/styles.css

with some modifications by intention:

 * visited links are colored differently
 * no fixed size
 * works without typeface.js

we keep most styles, which is from docutils, untouched.

tested with:

 * MSIE 6.0 on Windows
 * Firefox 3.5 on Linux
2009-11-09 00:00:47 +09:00
Martin Geisler
ba6e403c30 rst2man: more robust uppercasing of section titles
This handles section titles with child elements such as emphasis or
inline literals.
2009-11-08 16:16:21 +01:00
Martin Geisler
e2d8b0b8e1 doc: use titlecase in man page section titles 2009-11-08 11:46:38 +01:00
Martin Geisler
ddce3472aa rst2man: automatically write sections in uppercase
Man pages have uppercased section titles but other formats do not.
Letting rst2man handle the tranformation allows better reuse of text
between man pages and other formats.
2009-11-08 11:41:34 +01:00
Martin Geisler
a734140a12 hgrc.5: do not mention "name: value" syntax
This was supported in versions prior to 1.3 where we used the standard
Python ConfigParser. The new config parser never supported it.
2009-11-07 18:47:04 +01:00
Martin Geisler
38d09c8d4d hgrc.5: mark more inline literals 2009-11-07 15:51:32 +01:00
Martin Geisler
1b91a31aa9 hgrc.5: do not turn random URLs into links
URLs and email addresses are automatically turned into links. We don't
want that when talking about example links and addresses.
2009-11-07 14:41:03 +01:00
Martin Geisler
7285aa3ae7 hgrc.5: use enumerated list for email charsets 2009-11-07 14:30:58 +01:00
Christian Ebert
966f02c857 hgrc.5: order of email charsets is not a top level literal block
- it belongs under email charsets, not email in general
- enumerate order
2009-11-07 13:54:47 +01:00
Dirkjan Ochtman
12c5890a70 kill trailing whitespace 2009-11-05 10:44:36 +01:00
Martin Geisler
7e40bdcf3d hg.1: kill spurious backslash
I believe the backslash prevented asciidoc from automatically turning
"(C)" into a real copyright symbol. This replacement is not done in
reST in the first place.
2009-11-02 21:55:59 +01:00
Martin Geisler
05e89d7e15 doc/Makefile: add help/*.txt as a dependency 2009-11-02 21:38:42 +01:00
Martin Geisler
8ae9f6093b doc: add some internal links to man pages 2009-11-02 21:32:42 +01:00
Martin Geisler
7ad329e8b8 hgrc.5: combined short paragraphs into one
Short and precise sentences are good, but we can have more than one
such sentence per paragraph.
2009-11-02 21:08:33 +01:00
Martin Geisler
2ae29e4fd0 doc: use reST note directive
The 'NOTE: bla bla' syntax was for asciidoc and is still present in a
couple of docstrings. The docstrings will be converted to reST format
when minirst knows how to handle it.
2009-11-02 21:02:56 +01:00
Martin Geisler
77e5054cc9 hgrc.5: capitalize True and False consistently 2009-11-02 20:53:34 +01:00
Martin Geisler
0d60e93784 hgrc.5: document ui.traceback setting 2009-11-02 20:50:30 +01:00
Adrian Buehlmann
da618c2315 hgrc.5.txt: mention hgrc categories with higher precedence first
Reordering the FILES section accordingly.

The previous ordering of categories might have been nice from the
viewpoint of a site admin doing an initial install, but presenting a
higher-precedence-first ordering is more relevant and natural for the
average end user, since he will most likely resort to editing rc files
in the order of their precedence, overriding whatever "sane" defaults
are coming from more general files.

Note that this patch does not change the texts, it just moves them.
So, whatever bugs, grammar errors, or typos may have been in the texts
before this patch: they are still there. On purpose. Because this patch
here does not want to reword texts while moving them.
2009-10-21 13:40:55 +02:00
Adrian Buehlmann
b4da330562 doc/hgrc.5.txt: deprecate [defaults]
Quoting Matt:

"Defaults are a bad idea. They are deprecated. Don't use them. Don't
recommend them. Forget they existed. Use aliases."

in http://selenic.com/pipermail/mercurial-devel/2009-October/016095.html
2009-10-22 00:46:54 +02:00
Martin Geisler
598ceacdbb rst2man: highlight inline literals in bold
The old code would switch to Courier, but that doesn't really help
much in a manpage.
2009-10-22 00:30:24 +02:00
Martin Geisler
c03dbf4a91 rst2man: avoid italic for references
The links to other manpages used both italic and bold text nested
within each other. The \fP (select previous font) macro was used
incorrectly to "reset" the nested fonts resulting in:

  <roman> text <italic> <bold> hg <italic> (1) <bold> more text

with no switch back to roman. This stops the bleeding and removes the
ugly italic (underline) from the manpage links.
2009-10-22 00:27:08 +02:00
Martin Geisler
b04344b176 doc: add a style sheet to the generated HTML pages 2009-10-21 23:40:01 +02:00
Martin Geisler
bd199c7536 doc, help: stream-line use of inline-literals 2009-10-20 22:43:17 +02:00
Martin Geisler
7411f95959 gendoc: fix synopsis
The synopsis is used as an inline literal when generating the manpage.
There should not be any whitespace on the inside of the quotation
marks in inline literals.

Commands with an empty synopsis (such as tags) produces ``tags `` as
synopsis, which triggers a warning.
2009-10-20 22:42:49 +02:00
Adrian Buehlmann
75ad7600e0 doc: clarify license footers
Mercurial is licensed under version 2 of the GPL
2009-10-01 11:40:53 +02:00
Martin Geisler
1d1318a176 test-gendoc: add tests for all languages
This ensures that we catch errors in the reST syntax early and for all
languages. The only change needed in gendoc.py was to correct the
computation of section underlines for Asian languages.
2009-09-27 10:12:02 +02:00
Martin Geisler
7b90d8d58a gendoc: do not wrap encoded string
- it breaks multi-byte characters
- it is not needed since Docutils will take care of wrapping the
  strings as necessary
2009-09-27 10:04:51 +02:00
Martin Geisler
946a84caa7 doc/Makefile: make rst2html and rst2man halt on warnings 2009-09-13 17:08:31 +02:00
Martin Geisler
24e70f5cb2 doc/Makefile: do not create files in case of errors
When stdout is redirected to the target file directly, the file is
created as an empty file even when an error occurs. Since the file is
there, 'make' wont try to re-create it in subsequent runs.

This fix is similar to the one in 5c3820db5c29, but it also takes care
of rst2html and gendoc.py.
2009-09-13 17:05:38 +02:00
Martin Geisler
8de4494620 doc: add TOC to hg.1.html and hgrc.5.html 2009-09-04 22:26:57 +02:00
Martin Geisler
0cd7fbbd55 doc/README: simplify instructions 2009-09-03 21:40:45 +02:00
Martin Geisler
8ee86503c8 doc: use our own rst2man.py script (issue1746)
The rst2man tool has not yet been part of an official Docutils
release, and it is not present in most distributions. This poses a
problem for people who want to install Mercurial from source, or who
want to create a Mercurial package for such a distribution -- how to
specify the build-dependencies?

By including the rst2man.py script with Mercurial people only need a
normal Docutils installation in order to install Mercurial.
2009-09-03 21:36:44 +02:00
Martin Geisler
c52cd57ed2 doc/README: rst2man is now in Docutils proper 2009-08-28 20:28:06 +02:00
Mads Kiilerich
2cd7eecc00 doc/Makefile: detect the right name for rst2man and rst2html
docutils uses the .py extension on the commands, and so do their installer.
Distribution packages might strip the .py, but the official name should work too.
2009-08-20 23:35:46 +02:00
Mads Kiilerich
d476cb112b doc/Makefile: Don't show Makefile comments in output
The comments makes sense when editing Makefile, but not when watching its
output where it looks too much like error messages.
2009-08-20 23:35:47 +02:00
Mads Kiilerich
1f8cac4ff1 doc/Makefile: detect rst2man errors
Make couldn't detect rst2man errors when it wasn't the last command, so empty
man page files would be installed.
2009-08-20 23:35:37 +02:00
Martin Geisler
e2912b8950 Merge with crew-stable 2009-08-22 10:52:53 +02:00
Martin Geisler
b139d35cc0 hgrc.5: document %unset directive 2009-08-22 10:50:29 +02:00
Martin Geisler
73b766980d Merge with crew-stable 2009-08-22 01:37:28 +02:00
Martin Geisler
96c88eb0e0 hgrc.5: document %include directive 2009-08-22 01:34:56 +02:00
Dirkjan Ochtman
d96058fd14 hgweb: add web.descend configuration variable 2009-08-19 12:47:04 +02:00
Cédric Duval
5f07139d53 gendoc: don't translate topic strings twice (issue1760) 2009-07-24 12:20:40 +02:00
Martin Geisler
b596922c24 hgignore.5: expanded description
- explain that .hgignore must be created manually
- hint that it is typically put under revision control
2009-07-21 12:06:32 +02:00
Cédric Duval
ba6555759d gendoc: fall back to pure modules if C extensions are not available (issue1711) 2009-07-10 19:45:31 +02:00
Henri Wiechers
65cbcd91fd hgignore.5.txt: improved description of matching
Improved the description of the matching behavior used with .hgignore.
Made some minor language improvements.
2009-07-12 07:56:43 +02:00
Cédric Duval
044fa1649f gendoc: fix localization of help topic
When a topic provides a callable method for its text, most likely
this text will be generated from different parts, so it does not
make sense to apply gettext on the whole result, rather the method
should provide translation by itself.

This is the case with the extensions topic, which triggers a double
gettext call, making the ASCII codec fail when it encounters 8 bit
characters, and prevents the documentation from being built.
2009-07-04 12:12:36 +02:00
Dirkjan Ochtman
567b1cc6eb Backed out changeset e07e58e3faab (depends on other changes, no tests) 2009-08-05 16:32:38 +02:00
Cédric Duval
2b3b3cf99a gendoc: documentation section describing available extensions 2009-08-05 14:44:36 +02:00
Martin Geisler
fcc8159264 gendoc: make anchors for help topic names 2009-08-02 17:42:36 +02:00
Martin Geisler
b9abfaca93 gendoc: rename underlined/bold to section/subsection 2009-07-31 11:40:03 +02:00
Martin Geisler
7b2133abae Merge with crew-stable 2009-07-24 15:28:29 +02:00
Martin Geisler
09ecb9d836 hgignore.5: mark file names and cmdline options as literal text 2009-07-21 12:19:53 +02:00
Martin Geisler
b6d3a25fa7 merge with crew-stable 2009-07-21 12:09:32 +02:00
Martin Geisler
6333eff1b0 doc: update README with links to Docutils 2009-07-18 22:28:28 +02:00
Martin Geisler
6d834b7cc4 doc: link man pages to one another 2009-07-16 23:25:26 +02:00
Martin Geisler
47b638b157 doc: fixup font markup in man pages
This exposed a bug in rst2man where it neglects to escape a literal
backslash. A patch has been applied upstream, but not yet packaged in,
say, Debian unstable. A forward-compatible work-around has therefore
been put in place.
2009-07-16 23:25:26 +02:00
Martin Geisler
ab7c29bc29 doc: add newline after literal blocks in man pages
The rst2man writer leaves no space between a literal block and the
following paragraph. This patch corrects this.

It has also been applied upstream. This does not conflict with this
change since any number of newlines can be added without effecting the
rendered man page.
2009-07-16 23:25:26 +02:00
Martin Geisler
92882a99d0 doc: use reStructuredText for man and HTML pages
The Makefile now requires the rst2html and rst2man programs. Both can
be found in Debian testing or downloaded from the Docutils homepage:

  http://docutils.sf.net/
  http://docutils.sf.net/sandbox/manpage-writer/

The new HTML and man pages no longer contain huge amounts of
un-wrapping literal blocks, thanks to how snippets of reStructuredText
can easily be included inside other reStructuredText documents.

The HTML pages now have anchors for all sections, including the help
topics in hgrc.1 which were missing from the old HTML pages.
2009-07-16 23:25:26 +02:00
Martin Geisler
a2bda0adf6 merge with crew-stable 2009-07-15 17:44:47 +02:00
Martin Geisler
784725778f doc/Makefile: let hg1.gendoc.txt depend on gendoc.py 2009-07-10 01:23:07 +02:00
Dirkjan Ochtman
1d29e68744 change wiki/bts URLs to point to new hostname 2009-06-24 15:32:37 +02:00
Martin Geisler
6606fddaf6 hgrc.5: remove reference to DEFAULT section 2009-06-23 15:51:27 +02:00
Martin Geisler
018713a8e9 hgrc.5: mark more literal strings 2009-06-23 15:50:32 +02:00
Martin Geisler
0e4c4d2cd4 hgrc.5: markup compromis compatible with 7.1.2 and 8.4.5 2009-06-23 15:16:19 +02:00
Henrik Stuart
972f154635 url: support client certificate files over HTTPS (issue643)
This extends the httpshandler with the means to utilise the auth
section to provide it with a PEM encoded certificate key file and
certificate chain file. This works also with sites that both require
client certificate authentication and basic or digest password
authentication, although the latter situation may require the user to
enter the PEM password multiple times.
2009-06-20 10:58:57 +02:00
Cédric Duval
32cb7a3823 doc: fix regexp for determining the man page section
Preceding a .* pattern with an other dot serves little purpose,
better anchor the regexp to the start of the file name.
2009-06-10 19:59:44 +02:00
Patrick Mezard
c1548a6a3e Add patch.eol to ignore EOLs when patching (issue1019)
The intent is to fix many issues involving patching when win32ext is enabled.
With win32ext, the working directory and repository files EOLs are not the same
which means that patches made on a non-win32ext host do not apply cleanly
because of EOLs discrepancies. A theorically correct approach would be
transform either the patched file or the patch content with the
encoding/decoding filters used by win32ext. This solution is tricky to
implement and invasive, instead we prefer to address the win32ext case, by
offering a way to ignore input EOLs when patching and rewriting them when
saving the patched result.
2009-06-15 00:03:26 +02:00
Martin Geisler
eed2dde24c doc: wrap man pages after fixing quoting 2009-06-11 17:29:14 +02:00
Martin Geisler
20440a9594 hgrc.5: fix quoting of literal strings
The quotes would go wrong in many places due to differences between
asciidoc version 8.2.7 used by Benoit and 8.4.5 used by me. Between
those versions asciidoc stopped interpreting the content of `quoted
strings`, and so `*` would start bold text in the old version, but do
nothing in the new version.

To complicate things further, `\*` would escape the bold tag in the
old version, but in the new version the backslash was inserted
literally into the output (because the backtick quotes it).

I've now replaced backticks with non-quoting plusses and escaped
backslashes as appropriate.
2009-06-11 17:19:48 +02:00
Martin Geisler
df6db3c4ae hgignore.5: remove extra quotes
The so-called "unconstrained quotes" didn't really work, so I reverted
them to normal quotes. Tested with asciidoc version 8.2.7 and 8.4.5.
2009-06-11 17:16:04 +02:00
Benoit Boissinot
101bc29df4 doc: correctly escape * 2009-06-10 03:20:20 +02:00
Benoit Boissinot
89aac29846 doc: correctly escape * 2009-06-10 03:10:46 +02:00
Martin Geisler
215f869db8 hg.1: highlight references to commands and man pages 2009-06-10 01:14:16 +02:00
Martin Geisler
f906d04b19 hg.1: simplify synopsis
Now that arguments can be mixed with options we can simplify the
synopsis considerably. Also, highlighting the command name in bold
(instead of italics) seem to be the standard convention.
2009-06-10 01:09:21 +02:00
Martin Geisler
6d7eccbdcc hgrc.5: spell check 2009-06-10 00:55:57 +02:00
Martin Geisler
bc5c193ce2 man pages: add meta data
This removes the fixme's that were otherwise inserted.
2009-06-10 00:46:30 +02:00
Martin Geisler
f88e959011 man pages: updated copyright years 2009-06-10 00:13:08 +02:00
Martin Geisler
a5e22ab2f7 hgrc.5: use NOTE admonition paragraph 2009-06-10 00:11:24 +02:00
Martin Geisler
25c277802b hgrc.5: reformatted to avoid big chunks of monospaced text
The man page used to have lines longer than 80 characters, even though
all lines in the hgrc.5.txt file were wrapped nicely. The problem
turned out to be that the indented paragraphs started literal blocks
instead of normal paragraphs. The literal blocks were of course not
wrapped when displayed by man.

In short, the asciidoc rules require lists to be formatted like this:

foo::
  Some description of foo.
+
Another paragraph in the description of foo. It *must* start flush
left and the plus is necessary to indicate that this is a list item
continuation.

Lists with nested lists can be formatted correctly using something
called "open blocks". These blocks are used to group the list items
and are marked by a line above and below with two dashes. See the
asciidoc user guide for the gory details...
2009-06-10 00:06:20 +02:00
Martin Geisler
f4b6037b5b hgrc.5: mark filename patterns as monospaced text 2009-06-09 23:26:16 +02:00
Martin Geisler
6f8338698b hgrc.5: single quotes means italic in asciidoc
Use double quotes instead and mark the * as monospaced text.
2009-06-09 23:24:43 +02:00
Martin Geisler
c4cdb96344 man pages: mark filenames and env vars as fixed text 2009-06-09 23:08:55 +02:00