This file is indexed.

/usr/share/doc/monotone/html/Vars.html is in monotone-doc 1.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
<html lang="en">
<head>
<title>Vars - monotone documentation</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="monotone documentation">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Advanced-Uses.html#Advanced-Uses" title="Advanced Uses">
<link rel="prev" href="Quality-Assurance.html#Quality-Assurance" title="Quality Assurance">
<link rel="next" href="Managed-Databases.html#Managed-Databases" title="Managed Databases">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
<link rel="stylesheet" type="text/css" href="texinfo.css">
</head>
<body>
<div class="node">
<a name="Vars"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Managed-Databases.html#Managed-Databases">Managed Databases</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Quality-Assurance.html#Quality-Assurance">Quality Assurance</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Advanced-Uses.html#Advanced-Uses">Advanced Uses</a>
<hr>
</div>

<h3 class="section">3.9 Vars</h3>

<p>Every monotone database has a set of <em>vars</em> associated with it. 
Vars are simple configuration variables that monotone refers to in some
circumstances; they are used for configuration that monotone needs to be
able to modify itself, and that should be per-database (rather than
per-user or per-workspace, both of which are supported by
<samp><span class="file">monotonerc</span></samp> scripts).  Vars are local to a database, and never
transferred by netsync.

<p>A var is a <em>name</em> = <em>value</em> pairing inside a <em>domain</em>. 
Domains define what the vars inside it are used for; for instance, one
domain might contain database-global settings, and particular vars
inside it would define things like that database's default netsync
server.  Another domain might contain key fingerprints for servers that
monotone has interacted with in the past, to detect man-in-the-middle
attacks; the vars inside this domain would map server names to their
fingerprints.

<p>You can set vars with the <samp><span class="command">set</span></samp> command, delete them with the
<samp><span class="command">unset</span></samp> command, and see them with the <samp><span class="command">ls vars</span></samp>
command.  See the documentation for these specific commands for more
details.

<h3 class="heading">Existing vars</h3>

<p>There are several pre-defined domains that monotone knows about:

     <dl>
<dt><code>database</code><dd>Contains database-global configuration information.  Defined names are:

          <dl>
<dt><code>default-include-pattern</code><dd>The default global branch glob pattern for netsync operations to use. 
Automatically set by first use of netsync, and by any netsync that
uses the <samp><span class="option">--set-default</span></samp> option. 
<br><dt><code>default-exclude-pattern</code><dd>The default global branch exclusion glob pattern for netsync operations to
use. Automatically set by first use of netsync, and by any netsync
that uses the <samp><span class="option">--set-default</span></samp> option. 
<br><dt><code>default-server</code><dd>The default server for netsync operations to use.  Automatically set
by first use of netsync, and by any netsync that uses the
<samp><span class="option">--set-default</span></samp> option. 
<br><dt><code>delta-direction</code><dd>This tells monotone whether to store &lsquo;<samp><span class="samp">reverse</span></samp>&rsquo; deltas (the default),
&lsquo;<samp><span class="samp">forward</span></samp>&rsquo; deltas, or &lsquo;<samp><span class="samp">both</span></samp>&rsquo; kinds of deltas for reconstructing
versions of files. Reverse deltas are faster when inspecting recent files,
while forward deltas are much faster for sending over the network. This
should probably be set to &lsquo;<samp><span class="samp">both</span></samp>&rsquo; for a server database, unless disk
space is severely limited. Note that as <em>receiving</em> deltas involves
reconstructing the file version that the delta was made against, a server
using a database with only forward deltas will be somewhat slower at
receiving new revisions unless your particular history graph is highly
linear.

          <p>Changing this value does not affect deltas that have already been stored. 
<br><dt><code>known-workspaces</code><dd>Records all registered workspaces for the current databases.  monotone will
track the contents of this variable automatically for you in the background. 
</dl>

     <br><dt><code>known-servers</code><dd>Contains key hashes for servers that we have netsynced with in the
past.  Analogous to <samp><span class="command">ssh</span></samp>'s <samp><span class="file">known_hosts</span></samp> file, this is
needed to detect man-in-the-middle attacks.  Automatically set the first
time you netsync with any given server.  If that server's key later
changes, monotone will notice, and refuse to connect until you have run
<samp><span class="command">mtn unset known-servers </span><var>server-name</var></samp>.

     <br><dt><code>server-include</code><dd>Contains server-specific branch inclusion globs.  These overrule
<var>default-include-pattern</var> if existant and are recorded automatically
the first time you connect to a specific server or use the
<samp><span class="option">--set-default</span></samp> option for a netsync operation.

     <br><dt><code>server-exclude</code><dd>Likewise, this variable contains server-specific branch exclusion
globs, which overrule <var>default-exclude-pattern</var> if existant and
are also automatically set on the first connection or when the option
<samp><span class="option">--set-default</span></samp> is present.

</dl>

</body></html>