Mercurial > hg
comparison mercurial/commands.py @ 29647:9b6dc989f02b stable
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.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 01 Aug 2016 06:08:26 +0900 |
parents | 53e2c979e4cd |
children | 94c5273c7d5d |
comparison
equal
deleted
inserted
replaced
29646:a8a5dd8986f0 | 29647:9b6dc989f02b |
---|---|
2613 def debugdeltachain(ui, repo, file_=None, **opts): | 2613 def debugdeltachain(ui, repo, file_=None, **opts): |
2614 """dump information about delta chains in a revlog | 2614 """dump information about delta chains in a revlog |
2615 | 2615 |
2616 Output can be templatized. Available template keywords are: | 2616 Output can be templatized. Available template keywords are: |
2617 | 2617 |
2618 rev revision number | 2618 :``rev``: revision number |
2619 chainid delta chain identifier (numbered by unique base) | 2619 :``chainid``: delta chain identifier (numbered by unique base) |
2620 chainlen delta chain length to this revision | 2620 :``chainlen``: delta chain length to this revision |
2621 prevrev previous revision in delta chain | 2621 :``prevrev``: previous revision in delta chain |
2622 deltatype role of delta / how it was computed | 2622 :``deltatype``: role of delta / how it was computed |
2623 compsize compressed size of revision | 2623 :``compsize``: compressed size of revision |
2624 uncompsize uncompressed size of revision | 2624 :``uncompsize``: uncompressed size of revision |
2625 chainsize total size of compressed revisions in chain | 2625 :``chainsize``: total size of compressed revisions in chain |
2626 chainratio total chain size divided by uncompressed revision size | 2626 :``chainratio``: total chain size divided by uncompressed revision size |
2627 (new delta chains typically start at ratio 2.00) | 2627 (new delta chains typically start at ratio 2.00) |
2628 lindist linear distance from base revision in delta chain to end | 2628 :``lindist``: linear distance from base revision in delta chain to end |
2629 of this revision | 2629 of this revision |
2630 extradist total size of revisions not part of this delta chain from | 2630 :``extradist``: total size of revisions not part of this delta chain from |
2631 base of delta chain to end of this revision; a measurement | 2631 base of delta chain to end of this revision; a measurement |
2632 of how much extra data we need to read/seek across to read | 2632 of how much extra data we need to read/seek across to read |
2633 the delta chain for this revision | 2633 the delta chain for this revision |
2634 extraratio extradist divided by chainsize; another representation of | 2634 :``extraratio``: extradist divided by chainsize; another representation of |
2635 how much unrelated data is needed to load this delta chain | 2635 how much unrelated data is needed to load this delta chain |
2636 """ | 2636 """ |
2637 r = cmdutil.openrevlog(repo, 'debugdeltachain', file_, opts) | 2637 r = cmdutil.openrevlog(repo, 'debugdeltachain', file_, opts) |
2638 index = r.index | 2638 index = r.index |
2639 generaldelta = r.version & revlog.REVLOGGENERALDELTA | 2639 generaldelta = r.version & revlog.REVLOGGENERALDELTA |