Debian Codegraph @

doc/html/ext-fastannotate.html

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" />
7 <title>fastannotate</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="fastannotate">
12 <span id="ext-fastannotate"></span>
13 <h1 class="title">fastannotate</h1>
14
15 <div class="contents htmlonly topic" id="contents">
16 <p class="topic-title"><a class="reference internal" href="#top">Contents</a></p>
17 <ul class="simple">
18 <li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li>
19 <li><a class="reference internal" href="#commands" id="toc-entry-2">Commands</a></li>
20 </ul>
21 </div>
22 <p>yet another annotate implementation that might be faster (EXPERIMENTAL)</p>
23 <div class="section" id="description">
24 <h1><a class="toc-backref" href="#contents">Description</a></h1>
25 <p>The fastannotate extension provides a 'fastannotate' command that makes
26 use of the linelog data structure as a cache layer and is expected to
27 be faster than the vanilla 'annotate' if the cache is present.</p>
28 <p>In most cases, fastannotate requires a setup that mainbranch is some pointer
29 that always moves forward, to be most efficient.</p>
30 <p>Using fastannotate together with linkrevcache would speed up building the
31 annotate cache greatly. Run &quot;debugbuildlinkrevcache&quot; before
32 &quot;debugbuildannotatecache&quot;.</p>
33 <pre class="literal-block">
34 [fastannotate]
35 # specify the main branch head. the internal linelog will only contain
36 # the linear (ignoring p2) &quot;mainbranch&quot;. since linelog cannot move
37 # backwards without a rebuild, this should be something that always moves
38 # forward, usually it is &quot;master&quot; or &quot;&#64;&quot;.
39 mainbranch = master
40
41 # fastannotate supports different modes to expose its feature.
42 # a list of combination:
43 # - fastannotate: expose the feature via the &quot;fastannotate&quot; command which
44 # deals with everything in a most efficient way, and provides extra
45 # features like --deleted etc.
46 # - fctx: replace fctx.annotate implementation. note:
47 # a. it is less efficient than the &quot;fastannotate&quot; command
48 # b. it will make it practically impossible to access the old (disk
49 # side-effect free) annotate implementation
50 # c. it implies &quot;hgweb&quot;.
51 # - hgweb: replace hgweb's annotate implementation. conflict with &quot;fctx&quot;.
52 # (default: fastannotate)
53 modes = fastannotate
54
55 # default format when no format flags are used (default: number)
56 defaultformat = changeset, user, date
57
58 # serve the annotate cache via wire protocol (default: False)
59 # tip: the .hg/fastannotate directory is portable - can be rsynced
60 server = True
61
62 # build annotate cache on demand for every client request (default: True)
63 # disabling it could make server response faster, useful when there is a
64 # cronjob building the cache.
65 serverbuildondemand = True
66
67 # update local annotate cache from remote on demand
68 client = False
69
70 # path to use when connecting to the remote server (default: default)
71 remotepath = default
72
73 # minimal length of the history of a file required to fetch linelog from
74 # the server. (default: 10)
75 clientfetchthreshold = 10
76
77 # for &quot;fctx&quot; mode, always follow renames regardless of command line option.
78 # this is a BC with the original command but will reduced the space needed
79 # for annotate cache, and is useful for client-server setup since the
80 # server will only provide annotate cache with default options (i.e. with
81 # follow). do not affect &quot;fastannotate&quot; mode. (default: True)
82 forcefollow = True
83
84 # for &quot;fctx&quot; mode, always treat file as text files, to skip the &quot;isbinary&quot;
85 # check. this is consistent with the &quot;fastannotate&quot; command and could help
86 # to avoid a file fetch if remotefilelog is used. (default: True)
87 forcetext = True
88
89 # use unfiltered repo for better performance.
90 unfilteredrepo = True
91
92 # sacrifice correctness in some corner cases for performance. it does not
93 # affect the correctness of the annotate cache being built. the option
94 # is experimental and may disappear in the future (default: False)
95 perfhack = True
96 </pre>
97 </div>
98 <div class="section" id="commands">
99 <h1><a class="toc-backref" href="#contents">Commands</a></h1>
100 </div>
101 </div>
102 </body>
103 </html>