Debian Codegraph @

doc/html/ext-fsmonitor.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>fsmonitor</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="fsmonitor">
12 <span id="ext-fsmonitor"></span>
13 <h1 class="title">fsmonitor</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 </ul>
20 </div>
21 <p>Faster status operations with the Watchman file monitor (EXPERIMENTAL)</p>
22 <div class="section" id="description">
23 <h1><a class="toc-backref" href="#contents">Description</a></h1>
24 <p>Integrates the file-watching program Watchman with Mercurial to produce faster
25 status results.</p>
26 <p>On a particular Linux system, for a real-world repository with over 400,000
27 files hosted on ext4, vanilla <cite>hg status</cite> takes 1.3 seconds. On the same
28 system, with fsmonitor it takes about 0.3 seconds.</p>
29 <p>fsmonitor requires no configuration -- it will tell Watchman about your
30 repository as necessary. You'll need to install Watchman from
31 <a class="reference external" href="https://facebook.github.io/watchman/">https://facebook.github.io/watchman/</a> and make sure it is in your PATH.</p>
32 <p>fsmonitor is incompatible with the largefiles and eol extensions, and
33 will disable itself if any of those are active.</p>
34 <p>The following configuration options exist:</p>
35 <pre class="literal-block">
36 [fsmonitor]
37 mode = {off, on, paranoid}
38 </pre>
39 <p>When <cite>mode = off</cite>, fsmonitor will disable itself (similar to not loading the
40 extension at all). When <cite>mode = on</cite>, fsmonitor will be enabled (the default).
41 When <cite>mode = paranoid</cite>, fsmonitor will query both Watchman and the filesystem,
42 and ensure that the results are consistent.</p>
43 <pre class="literal-block">
44 [fsmonitor]
45 timeout = (float)
46 </pre>
47 <p>A value, in seconds, that determines how long fsmonitor will wait for Watchman
48 to return results. Defaults to <cite>2.0</cite>.</p>
49 <pre class="literal-block">
50 [fsmonitor]
51 blacklistusers = (list of userids)
52 </pre>
53 <p>A list of usernames for which fsmonitor will disable itself altogether.</p>
54 <pre class="literal-block">
55 [fsmonitor]
56 walk_on_invalidate = (boolean)
57 </pre>
58 <p>Whether or not to walk the whole repo ourselves when our cached state has been
59 invalidated, for example when Watchman has been restarted or .hgignore rules
60 have been changed. Walking the repo in that case can result in competing for
61 I/O with Watchman. For large repos it is recommended to set this value to
62 false. You may wish to set this to true if you have a very fast filesystem
63 that can outpace the IPC overhead of getting the result data for the full repo
64 from Watchman. Defaults to false.</p>
65 <pre class="literal-block">
66 [fsmonitor]
67 warn_when_unused = (boolean)
68 </pre>
69 <p>Whether to print a warning during certain operations when fsmonitor would be
70 beneficial to performance but isn't enabled.</p>
71 <pre class="literal-block">
72 [fsmonitor]
73 warn_update_file_count = (integer)
74 # or when mercurial is built with rust support
75 warn_update_file_count_rust = (integer)
76 </pre>
77 <p>If <tt class="docutils literal">warn_when_unused</tt> is set and fsmonitor isn't enabled, a warning will
78 be printed during working directory updates if this many files will be
79 created.</p>
80 </div>
81 </div>
82 </body>
83 </html>