Mercurial > hg-stable
changeset 9796:e5b79eb5b84a
merge with crew
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 08 Nov 2009 17:09:28 +0100 |
parents | 8eacee85d019 (current diff) ec8533806e27 (diff) |
children | 0c5714a4920f 1ca6314205f3 |
files | |
diffstat | 7 files changed, 106 insertions(+), 162 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/gendoc.py Sun Nov 08 17:03:24 2009 +0100 +++ b/doc/gendoc.py Sun Nov 08 17:09:28 2009 +0100 @@ -61,12 +61,12 @@ ui.write("%s\n%s\n\n" % (s, '"' * encoding.colwidth(s))) # print options - section(_("OPTIONS")) + section(_("Options")) for optstr, desc in get_opts(globalopts): ui.write("%s\n %s\n\n" % (optstr, desc)) # print cmds - section(_("COMMANDS")) + section(_("Commands")) h = {} for c, attr in table.items(): f = c.split("|")[0] @@ -104,7 +104,7 @@ for name in names: ui.write(".. _%s:\n" % name) ui.write("\n") - section(sec.upper()) + section(sec) if callable(doc): doc = doc() ui.write(doc)
--- a/doc/hg.1.txt Sun Nov 08 17:03:24 2009 +0100 +++ b/doc/hg.1.txt Sun Nov 08 17:09:28 2009 +0100 @@ -16,16 +16,16 @@ :class: htmlonly -SYNOPSIS +Synopsis -------- **hg** *command* [*option*]... [*argument*]... -DESCRIPTION +Description ----------- The **hg** command provides a command line interface to the Mercurial system. -COMMAND ELEMENTS +Command Elements ---------------- files... @@ -46,7 +46,7 @@ .. include:: hg.1.gendoc.txt -FILES +Files ----- ``.hgignore`` @@ -70,20 +70,20 @@ if the ``.orig`` file already exists and is not tracked by Mercurial, it will be overwritten. -BUGS +Bugs ---- Probably lots, please post them to the mailing list (see Resources_ below) when you find them. -SEE ALSO +See Also -------- |hgignore(5)|_, |hgrc(5)|_ -AUTHOR +Author ------ Written by Matt Mackall <mpm@selenic.com> -RESOURCES +Resources --------- Main Web Site: http://mercurial.selenic.com/ @@ -91,7 +91,7 @@ Mailing list: http://selenic.com/mailman/listinfo/mercurial -COPYING +Copying ------- Copyright (C) 2005-2009 Matt Mackall. Free use of this software is granted under the terms of the GNU General
--- a/doc/hgignore.5.txt Sun Nov 08 17:03:24 2009 +0100 +++ b/doc/hgignore.5.txt Sun Nov 08 17:09:28 2009 +0100 @@ -11,14 +11,14 @@ :Manual section: 5 :Manual group: Mercurial Manual -SYNOPSIS +Synopsis -------- The Mercurial system uses a file called ``.hgignore`` in the root directory of a repository to control its behavior when it searches for files that it is not currently tracking. -DESCRIPTION +Description ----------- The working directory of a Mercurial repository will often contain @@ -45,7 +45,7 @@ To control Mercurial's handling of files that it manages, see the |hg(1)|_ man page. Look for the ``-I`` and ``-X`` options. -SYNTAX +Syntax ------ An ignore file is a plain text file consisting of a list of patterns, @@ -75,7 +75,7 @@ and a regexp pattern of the form ``\.c$`` will do the same. To root a regexp pattern, start it with ``^``. -EXAMPLE +Example ------- Here is an example ignore file. :: @@ -91,17 +91,17 @@ syntax: regexp ^\.pc/ -AUTHOR +Author ------ Vadim Gelfer <vadim.gelfer@gmail.com> Mercurial was written by Matt Mackall <mpm@selenic.com>. -SEE ALSO +See Also -------- |hg(1)|_, |hgrc(5)|_ -COPYING +Copying ------- This manual page is copyright 2006 Vadim Gelfer. Mercurial is copyright 2005-2009 Matt Mackall.
--- a/doc/hgrc.5.txt Sun Nov 08 17:03:24 2009 +0100 +++ b/doc/hgrc.5.txt Sun Nov 08 17:09:28 2009 +0100 @@ -16,13 +16,13 @@ :class: htmlonly -SYNOPSIS +Synopsis -------- The Mercurial system uses a set of configuration files to control aspects of its behavior. -FILES +Files ----- Mercurial reads configuration data from several files, if they exist. @@ -83,7 +83,7 @@ a ``Mercurial.ini`` file or be a directory where ``*.rc`` files will be read. -SYNTAX +Syntax ------ A configuration file consists of sections, led by a ``[section]`` header @@ -108,7 +108,7 @@ section, if it has been set previously. -SECTIONS +Sections -------- This section describes the different sections that may appear in a @@ -933,17 +933,17 @@ Where to find the HTML templates. Default is install path. -AUTHOR +Author ------ Bryan O'Sullivan <bos@serpentine.com>. Mercurial was written by Matt Mackall <mpm@selenic.com>. -SEE ALSO +See Also -------- |hg(1)|_, |hgignore(5)|_ -COPYING +Copying ------- This manual page is copyright 2005 Bryan O'Sullivan. Mercurial is copyright 2005-2009 Matt Mackall.
--- a/doc/rst2man.py Sun Nov 08 17:03:24 2009 +0100 +++ b/doc/rst2man.py Sun Nov 08 17:09:28 2009 +0100 @@ -1048,6 +1048,8 @@ raise nodes.SkipNode elif self.section_level == 1: self.body.append('.SH ') + for n in node.traverse(nodes.Text): + n.parent.replace(n, nodes.Text(n.astext().upper())) else: self.body.append('.SS ')
--- a/doc/style.css Sun Nov 08 17:03:24 2009 +0100 +++ b/doc/style.css Sun Nov 08 17:09:28 2009 +0100 @@ -1,32 +1,91 @@ +/* + * Styles for man pages, which suit with http://mercurial.selenic.com/ + * + * Color scheme & layout are borrowed from + * http://mercurial.selenic.com/css/styles.css + * + * Some styles are from html4css1.css from Docutils, which is in the + * public domain. + */ body { + margin: 0; + padding: 0; font-family: sans-serif; - /* adjustment for tt padding */ - line-height: 140%; + color: #111; } -tt, pre { - background-color: #EEE; - border: thin solid #CCC; - padding: 1px; +.document { + position: relative; /* be a top of absolute positioning */ + margin: 1.5em 1.8em; + padding: 0; + line-height: 1.3; +} + +/* layout: toc to right */ +#contents { + position: absolute; + right: 0; + top: 0; + width: 26%; } -pre { - padding: 0.25em; +/* layout: others to left */ +h1.title, h2.subtitle, .section { width: 72%; } +.section .section { width: auto; } +table.docinfo { max-width: 72%; } + +/* headings */ +h1, h2, .topic-title, .admonition-title { + font-family: "MgOpen Cosmetica", "Lucida Sans Unicode", sans-serif; + font-weight: normal; +} +h1, h2, .topic-title, .admonition-title { + margin: 1em 0 0.5em; +} +h1.title { font-size: 300%; } +h2.subtitle, h1 { font-size: 200%; } +h2, .topic-title, .admonition-title { font-size: 140%; } + +/* override first/last margin */ +.first, h1.title, h2.subtitle { margin-top: 0 !important; } +.last, .with-subtitle { margin-bottom: 0 !important; } + +blockquote, pre, dd .option-list, .field-list { + margin: 0.2em 0 1em 2em; } -#contents tt, h2 tt { - background-color: inherit; - border: inherit; +kbd, tt, pre { font-family: monospace; } + +dt { font-weight: bold; } +dd { margin-bottom: 0.5em; } + +th, td { padding: 0.1em 0.2em; border: 0 none; } +th { font-weight: bold; text-align: left; } + +a:link, a:visited { text-decoration: underline; } +a:hover, a:focus { text-decoration: none; } +a:link { color: #00b5f1; } +a:visited { color: #5c9caf; } +a:link.toc-backref, a:visited.toc-backref { + text-decoration: none; + color: #111; /* `inherit' not supported by IE6 */ } -/* styles taken from html4css1.css from Docutils, which is in the - public domain */ +div.admonition, div.attention, div.caution, +div.danger, div.error, div.hint, div.important, +div.note, div.tip, div.warning { + border-top: 1px #ccc solid; + border-bottom: 1px #ccc solid; + padding: 0.3em 1em; + margin: 1em; +} -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0; -} + +/* + * The following styles are from docutils'. + * Please refine if necessary. + */ table.borderless td, table.borderless th { /* Override padding for "table.docutils td" with "! important". @@ -34,91 +93,24 @@ padding: 0 0.5em 0 0 ! important; } -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important; -} - -.last, .with-subtitle { - margin-bottom: 0 ! important; -} - .hidden { display: none; } -a.toc-backref { - text-decoration: none; - color: black; -} - blockquote.epigraph { - margin: 2em 5em;; + margin: 2em 5em; } -dl.docutils dd { - margin-bottom: 0.5em; -} - -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold; -} -*/ - div.abstract { margin: 2em 5em; } -div.abstract p.topic-title { - font-weight: bold; - text-align: center; -} - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em; - border: medium outset; - padding: 1em; -} - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold; - font-family: sans-serif; -} - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title { - color: red; - font-weight: bold; - font-family: sans-serif; -} - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em; -} - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em; -} -*/ - div.dedication { margin: 2em 5em; text-align: center; font-style: italic; } -div.dedication p.topic-title { - font-weight: bold; - font-style: normal; -} - div.figure { margin-left: 2em; margin-right: 2em; @@ -174,23 +166,11 @@ font-weight: bold; } -div.topic { - margin: 2em; -} - h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em; } -h1.title { - text-align: center; -} - -h2.subtitle { - text-align: center; -} - hr.docutils { width: 75%; } @@ -252,21 +232,6 @@ text-align: center; } -p.sidebar-title { - font-family: sans-serif; - font-weight: bold; - font-size: larger; -} - -p.sidebar-subtitle { - font-family: sans-serif; - font-weight: bold; -} - -p.topic-title { - font-weight: bold; -} - pre.address { margin-bottom: 0; margin-top: 0; @@ -315,34 +280,11 @@ margin-left: 1px; } -table.docinfo { - margin: 2em 4em; -} - -table.docutils { - margin-top: 0.5em; - margin-bottom: 0.5em; -} - table.footnote { border-left: solid 1px black; margin-left: 1px; } -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em; - padding-right: 0.5em; - vertical-align: top; -} - -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold; - text-align: left; - white-space: nowrap; - padding-left: 0; -} - h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { font-size: 100%;
--- a/hgext/relink.py Sun Nov 08 17:03:24 2009 +0100 +++ b/hgext/relink.py Sun Nov 08 17:09:28 2009 +0100 @@ -135,7 +135,7 @@ relinked += 1 savedbytes += sz except OSError, inst: - ui.warn(_('%s: %s\n') % (tgt, str(inst))) + ui.warn('%s: %s\n' % (tgt, str(inst))) ui.status(_('relinked %d files (%d bytes reclaimed)\n') % (relinked, savedbytes))