From patchwork Sun Jul 31 21:41:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4, of, 6, STABLE] doc: use field rst syntax to show keywords in debugdeltachain help correctly From: Katsunori FUJIWARA X-Patchwork-Id: 16009 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 01 Aug 2016 06:41:04 +0900 # HG changeset patch # User FUJIWARA Katsunori # Date 1469999306 -32400 # Mon Aug 01 06:08:26 2016 +0900 # Branch stable # Node ID f6b7e8084d187c919af669015975f4fb75eae4d8 # Parent bd0f925780188ebd4b9b9a1a9cff047b54618e69 doc: use field rst syntax to show keywords in debugdeltachain help correctly List of available keywords is well formatted as a list of fields in doc string, but is formatted as just normal text in online help output. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2615,23 +2615,23 @@ def debugdeltachain(ui, repo, file_=None Output can be templatized. Available template keywords are: - rev revision number - chainid delta chain identifier (numbered by unique base) - chainlen delta chain length to this revision - prevrev previous revision in delta chain - deltatype role of delta / how it was computed - compsize compressed size of revision - uncompsize uncompressed size of revision - chainsize total size of compressed revisions in chain - chainratio total chain size divided by uncompressed revision size + :``rev``: revision number + :``chainid``: delta chain identifier (numbered by unique base) + :``chainlen``: delta chain length to this revision + :``prevrev``: previous revision in delta chain + :``deltatype``: role of delta / how it was computed + :``compsize``: compressed size of revision + :``uncompsize``: uncompressed size of revision + :``chainsize``: total size of compressed revisions in chain + :``chainratio``: total chain size divided by uncompressed revision size (new delta chains typically start at ratio 2.00) - lindist linear distance from base revision in delta chain to end + :``lindist``: linear distance from base revision in delta chain to end of this revision - extradist total size of revisions not part of this delta chain from + :``extradist``: total size of revisions not part of this delta chain from base of delta chain to end of this revision; a measurement of how much extra data we need to read/seek across to read the delta chain for this revision - extraratio extradist divided by chainsize; another representation of + :``extraratio``: extradist divided by chainsize; another representation of how much unrelated data is needed to load this delta chain """ r = cmdutil.openrevlog(repo, 'debugdeltachain', file_, opts)