/usr/share/doc/monotone/html/Informative.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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 | <html lang="en">
<head>
<title>Informative - 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="Command-Reference.html#Command-Reference" title="Command Reference">
<link rel="prev" href="Network.html#Network" title="Network">
<link rel="next" href="Review.html#Review" title="Review">
<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="Informative"></a>
<p>
Next: <a rel="next" accesskey="n" href="Review.html#Review">Review</a>,
Previous: <a rel="previous" accesskey="p" href="Network.html#Network">Network</a>,
Up: <a rel="up" accesskey="u" href="Command-Reference.html#Command-Reference">Command Reference</a>
<hr>
</div>
<h3 class="section">4.5 Informative</h3>
<dl>
<dt><samp><span class="command">mtn annotate </span><var>file</var></samp><a name="index-mtn-annotate-_0040var_007bfile_007d-100"></a><dt><samp><span class="command">mtn annotate [--revision=</span><var>id</var><span class="command">] [--revs-only] </span><var>file</var></samp><a name="index-mtn-annotate-_005b_002d_002drevision_003d_0040var_007bid_007d_005d-_005b_002d_002drevs_002donly_005d-_0040var_007bfile_007d-101"></a><dd>
Dumps an annotated copy of the file to stdout. The output is in the
form:
<pre class="example"> <short revision id>.. by <author> <date>: <line>
</pre>
<p><revision id> is the revision in which that line of the file was last
edited; <author> is the author cert on that revision, <date> is the
date cert on that revision.
<p>Only the first 8 characters of the revision id are displayed, the
author cert value is truncated at the first <code>@</code> or space
character and the date field is truncated to remove the time of day.
<p>If <samp><span class="option">--revs-only</span></samp> is specified, the output format is:
<pre class="example"> <revision id>: <line>
</pre>
<br><dt><samp><span class="command">mtn bisect bad [--revision=</span><var>id</var><span class="command"> ...] [--[no-]move-conflicting-paths]</span></samp><a name="index-mtn-bisect-bad-_005b_002d_002drevision_003d_0040var_007bid_007d-_002e_002e_002e_005d-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d-102"></a><dd>Mark the specified revisions as “bad” for the current bisection
operation (see <a href="Bisecting.html#Bisecting">Bisecting</a>). If no bisection operation is in
progress a new bisection is initialized. If a bisection operation is
in progress the next update target is selected and the workspace is
updated to the selected revision.
<p>If the update is blocked by conflicting unversioned paths existing in
the workspace this command may be re-issued with the
<samp><span class="option">--move-conflicting-paths</span></samp> option. Alternatively, the
<samp><span class="command">bisect update</span></samp> command can be used with this option to update
the workspace and move the conflicting paths out of the way.
<br><dt><samp><span class="command">mtn bisect good [--revision=</span><var>id</var><span class="command"> ...] [--[no-]move-conflicting-paths]</span></samp><a name="index-mtn-bisect-good-_005b_002d_002drevision_003d_0040var_007bid_007d-_002e_002e_002e_005d-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d-103"></a><dd>Mark the specified revisions as “good” for the current bisection
operation (see <a href="Bisecting.html#Bisecting">Bisecting</a>). If no bisection operation is in
progress a new bisection is initialized. If a bisection operation is
in progress the next update target is selected and the workspace is
updated to the selected revision.
<p>If the update is blocked by conflicting unversioned paths existing in
the workspace this command may be re-issued with the
<samp><span class="option">--move-conflicting-paths</span></samp> option. Alternatively, the
<samp><span class="command">bisect update</span></samp> command can be used with this option to update
the workspace and move the conflicting paths out of the way.
<br><dt><samp><span class="command">mtn bisect reset</span></samp><a name="index-mtn-bisect-reset-104"></a><dd>Reset the current bisection operation by updating the workspace back
to the revision from which the bisection was started and clearing the
current bisection information.
<br><dt><samp><span class="command">mtn bisect skip [--revision=</span><var>id</var><span class="command"> ...] [--[no-]move-conflicting-paths]</span></samp><a name="index-mtn-bisect-skip-_005b_002d_002drevision_003d_0040var_007bid_007d-_002e_002e_002e_005d-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d-105"></a><dd>Mark the specified revisions as “skipped” for the current bisection
operation (see <a href="Bisecting.html#Bisecting">Bisecting</a>). If no bisection operation is in
progress a new bisection is initialized. If a bisection operation is
in progress the next update target is selected and the workspace is
updated to the selected revision.
<p>If the update is blocked by conflicting unversioned paths existing in
the workspace this command may be re-issued with the
<samp><span class="option">--move-conflicting-paths</span></samp> option. Alternatively, the
<samp><span class="command">bisect update</span></samp> command can be used with this option to update
the workspace and move the conflicting paths out of the way.
<br><dt><samp><span class="command">mtn bisect status</span></samp><a name="index-mtn-bisect-status-106"></a><dd>Report the status of the current bisection operation including the
number of revisions that remain to be tested, the number of revisions
that have been tested and the next revision that will selected for
testing.
<br><dt><samp><span class="command">mtn bisect update [--[no-]move-conflicting-paths]</span></samp><a name="index-mtn-bisect-update-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d-107"></a><dd>Update the workspace to the next revision selected by the previous
bisect operation (see <a href="Bisecting.html#Bisecting">Bisecting</a>). This command can be useful
when the previous bisect operation fails to update the workspace
because of conflicting unversioned paths existing in the workspace.
<br><dt><samp><span class="command">mtn cat [--revision=</span><var>id</var><span class="command">] </span><var>path</var></samp><a name="index-mtn-cat-_005b_002d_002drevision_003d_0040var_007bid_007d_005d-_0040var_007bpath_007d-108"></a><dd>Write the contents of a specific file <var>path</var> in revision <var>id</var>
(default to workspace base revision) to standard output.
<br><dt><samp><span class="command">mtn complete file </span><var>partial-id</var></samp><a name="index-mtn-complete-file-_0040var_007bpartial_002did_007d-109"></a><dt><samp><span class="command">mtn complete key </span><var>partial-id</var></samp><a name="index-mtn-complete-key-_0040var_007bpartial_002did_007d-110"></a><dt><samp><span class="command">mtn complete revision </span><var>partial-id</var></samp><a name="index-mtn-complete-revision-_0040var_007bpartial_002did_007d-111"></a><dd>
These commands print out all known completions of a partial <span class="sc">sha1</span>
value, listing completions which are <code>file</code>, <code>manifest</code> or
<code>revision</code> IDs depending on which variant is used. For
example, suppose you enter this command and get this result:
<pre class="smallexample"> $ mtn complete revision fa36
fa36deead87811b0e15208da2853c39d2f6ebe90
fa36b76dd0139177b28b379fe1d56b22342e5306
fa36965ec190bee14c5afcac235f1b8e2239bb2a
</pre>
<p>Then monotone is telling you that there are 3 revisions it knows
about, in its database, which begin with the 4 hex digits
<code>fa36</code>. This command is intended to be used by programmable
completion systems, such as those in <samp><span class="command">bash</span></samp> and <samp><span class="command">zsh</span></samp>.
<p><a name="mtn-diff"></a><br><dt><samp><span class="command">mtn diff [--unified] [--[no-]show-encloser]</span></samp><a name="index-mtn-diff-_005b_002d_002dunified_005d-_005b_002d_002d_005bno_002d_005dshow_002dencloser_005d-112"></a><dt><samp><span class="command">mtn diff --context [--[no-]show-encloser]</span></samp><a name="index-mtn-diff-_002d_002dcontext-_005b_002d_002d_005bno_002d_005dshow_002dencloser_005d-113"></a><dt><samp><span class="command">mtn diff --external [--diff-args=</span><var>argstring</var><span class="command">]</span></samp><a name="index-mtn-diff-_002d_002dexternal-_005b_002d_002ddiff_002dargs_003d_0040var_007bargstring_007d_005d-114"></a><dt><samp><span class="command">mtn diff </span><var>pathname...</var></samp><a name="index-mtn-diff-_0040var_007bpathname_002e_002e_002e_007d-115"></a><dt><samp><span class="command">mtn diff [--reverse] --revision=</span><var>id</var></samp><a name="index-mtn-diff-_005b_002d_002dreverse_005d-_002d_002drevision_003d_0040var_007bid_007d-116"></a><dt><samp><span class="command">mtn diff --revision=</span><var>id</var> <var>pathname...</var></samp><a name="index-mtn-diff-_002d_002drevision_003d_0040var_007bid_007d-_0040var_007bpathname_002e_002e_002e_007d-117"></a><dt><samp><span class="command">mtn diff --revision=</span><var>id1</var><span class="command"> --revision=</span><var>id2</var></samp><a name="index-mtn-diff-_002d_002drevision_003d_0040var_007bid1_007d-_002d_002drevision_003d_0040var_007bid2_007d-118"></a><dt><samp><span class="command">mtn diff --revision=</span><var>id1</var><span class="command"> --revision=</span><var>id2</var> <var>pathname...</var></samp><a name="index-mtn-diff-_002d_002drevision_003d_0040var_007bid1_007d-_002d_002drevision_003d_0040var_007bid2_007d-_0040var_007bpathname_002e_002e_002e_007d-119"></a><dt><samp><span class="command">mtn di</span></samp><a name="index-mtn-di-120"></a><dd><samp><span class="command">di</span></samp> is an alias for <samp><span class="command">diff</span></samp>. See online help for more options.
<p>These commands print out textual difference listings between various
manifest versions. With no <samp><span class="option">--revision</span></samp> options, <samp><span class="command">diff</span></samp>
will print the difference from the base revision to the current
revision in the workspace.
<p>With one <samp><span class="option">--revision</span></samp> option, <samp><span class="command">diff</span></samp> will print the
difference from the revision <var>id</var> to the current revision in the
workspace. If <samp><span class="option">--reverse</span></samp> is given, the order of the diff is
reversed.
<p>With two <samp><span class="option">--revision</span></samp> options <samp><span class="command">diff</span></samp> will print the
difference from revision <var>id1</var> to <var>id2</var>, ignoring any
workspace.
<p>In all cases, monotone will print a textual summary – identical to
the summary presented by <samp><span class="command">mtn status</span></samp> – of the logical
differences between revisions in lines proceeding the diff. These
lines begin with a single hash mark <code>#</code>, and should be ignored by
a program processing the diff, such as <samp><span class="command">patch</span></samp>.
<p>Specifying pathnames to the <samp><span class="command">diff</span></samp> command restricts the set of
changes that are visible and results in only a partial diff between
two revisions. Changes to files not included in the specified set of
pathnames will be ignored.
<p>From within a subdirectory of the workspace the <samp><span class="command">diff</span></samp> command
will, by default, include <em>all changes</em> in the workspace.
Specifying only the pathname "." will restrict <samp><span class="command">diff</span></samp> to files
changed within the current subdirectory of the workspace.
<p>The output format of <samp><span class="command">diff</span></samp> is controlled by the options
<samp><span class="option">--unified</span></samp>, <samp><span class="option">--context</span></samp>, <samp><span class="option">--no-show-encloser</span></samp>, and
<samp><span class="option">--external</span></samp>. By default, monotone uses its built-in diff
algorithm to produce a listing in “unified diff” format (analogous
to running the program <samp><span class="command">diff </span><samp><span class="option">-u</span></samp></samp>); you can also explicitly
request this with <samp><span class="option">--unified</span></samp>. The built-in diff algorithm can
also produce “context diff” format (analogous to <samp><span class="command">diff </span><samp><span class="option">-c</span></samp></samp>),
which you request by specifying <samp><span class="option">--context</span></samp>. The short options
that <samp><span class="command">diff</span></samp> accepts for these modes, <samp><span class="option">-u</span></samp> and
<samp><span class="option">-c</span></samp>, also work.
<p>In either of these modes, monotone prints the name of the top-level
code construct that encloses each “hunk” of changes, unless
suppressed with the <samp><span class="option">--no-show-encloser</span></samp>. The options that
<samp><span class="command">diff</span></samp> accepts for this mode, <samp><span class="option">-p</span></samp> and
<samp><span class="option">--show-c-function</span></samp>, also work. Monotone finds the enclosing
construct by scanning backward from the first changed line in each
hunk for a line that matches a regular expression. The default
regular expression is correct for many programming languages. You can
adjust the expression used with the Lua hook
<a href="get_005fencloser_005fpattern.html#get_005fencloser_005fpattern">get_encloser_pattern</a>. For the regular expression syntax, see
<a href="Regexps.html#Regexps">Regexps</a>.
<p>Sometimes, you may want more flexibility in output formats; for these
cases, you can use <samp><span class="option">--external</span></samp>, which causes monotone to
invoke an external program to generate the actual output. By default,
the external program is <code>diff</code>, and you can use the option
<samp><span class="option">--diff-args</span></samp> to pass additional arguments controlling
formatting. The actual invocation of <samp><span class="command">diff</span></samp>, default
arguments passed to it, and so on, are controlled by the hook
<a href="external_005fdiff.html#external_005fdiff">external_diff</a>.
<br><dt><samp><span class="command">mtn help [--[no-]hidden] </span><var>command...</var></samp><a name="index-mtn-help-_005b_002d_002d_005bno_002d_005dhidden_005d-_0040var_007bcommand_002e_002e_002e_007d-121"></a><dd>Displays help about commands and options.
<p><a name="mtn-list-branches"></a><br><dt><samp><span class="command">mtn list branches [</span><var>pattern</var><span class="command">] [--exclude=</span><var>pattern</var><span class="command">]</span></samp><a name="index-mtn-list-branches-_005b_0040var_007bpattern_007d_005d-_005b_002d_002dexclude_003d_0040var_007bpattern_007d_005d-122"></a><dt><samp><span class="command">mtn ls branches</span></samp><a name="index-mtn-ls-branches-123"></a><dd><samp><span class="command">ls branches</span></samp> is an alias for <samp><span class="command">list branches</span></samp>.
<p>This command lists all known branches in your database. If
<var>pattern</var> is provided, it is used as a glob to select the branches
listed, otherwise all branches are listed. If <samp><span class="option">-exclude</span></samp>
options are provided they are used as globs to exclude specified
branches. In addition, branches for which the Lua hook
<a href="ignore_005fbranch.html#ignore_005fbranch">ignore_branch</a> returns true are excluded.
<p>Normally, branches that have been suspended are not listed; the global
option <samp><span class="option">--ignore-suspend-certs</span></samp> causes suspended branches to
be listed; see <samp><span class="command"><a href="mtn-suspend.html#mtn-suspend">mtn suspend</a></span></samp>.
<br><dt><samp><span class="command">mtn list certs </span><var>id</var></samp><a name="index-mtn-list-certs-_0040var_007bid_007d-124"></a><dt><samp><span class="command">mtn ls certs</span></samp><a name="index-mtn-ls-certs-125"></a><dd><samp><span class="command">ls certs</span></samp> is an alias for <samp><span class="command">list certs</span></samp>.
<p>This command will print out a list of certificates associated with
a particular revision <var>id</var>. Each line of the print out will
indicate:
<ul>
<li>The key used to sign the certificate
<li>Whether the signature on the certificate is <code>ok</code> or <code>bad</code>
<li>The name of the certificate
<li>The value of the certificate
</ul>
<p>For example, this command lists the certificates associated with a
particular version of monotone itself, in the monotone development
branch:
<pre class="smallexample"> $ mtn list certs 4a96
mtn: expanding partial id '4a96'
mtn: expanded to '4a96a230293456baa9c6e7167cafb3c5b52a8e7f'
-----------------------------------------------------------------
Key : graydon@pobox.com (10b5b36b4a...)
Sig : ok
Name : author
Value : graydon@dub.venge.net
-----------------------------------------------------------------
Key : graydon@pobox.com (10b5b36b4a...)
Sig : ok
Name : branch
Value : monotone
-----------------------------------------------------------------
Key : graydon@pobox.com (10b5b36b4a...)
Sig : ok
Name : date
Value : 2003-10-17T03:20:27
-----------------------------------------------------------------
Key : graydon@pobox.com (10b5b36b4a...)
Sig : ok
Name : changelog
Value : 2003-10-16 graydon hoare <graydon@pobox.com>
:
: * sanity.hh: Add a const version of idx().
: * diff_patch.cc: Change to using idx() everywhere.
: * cert.cc (find_common_ancestor): Rewrite to recursive
: form, stepping over historic merges.
: * tests/t_cross.at: New test for merging merges.
: * testsuite.at: Call t_cross.at.
:
</pre>
<br><dt><samp><span class="command">mtn list changed [</span><var>pathname...</var><span class="command">]</span></samp><a name="index-mtn-list-changed-_005b_0040var_007bpathname_002e_002e_002e_007d_005d-126"></a><dt><samp><span class="command">mtn ls changed</span></samp><a name="index-mtn-ls-changed-127"></a><dd><samp><span class="command">ls changed</span></samp> is an alias for <samp><span class="command">list changed</span></samp>.
See online help for more options.
<p>This command lists all files in your workspace that have changed
compared to the base revision, including files that are dropped, added
or renamed.
<p>Specifying pathnames to the <samp><span class="command">list changed</span></samp> command restricts
the set of paths that are checked for changes. Files not included in the
specified set of pathnames will not be listed.
<p>From within a subdirectory of the workspace the <samp><span class="command">list
changed</span></samp> command will, by default, search the entire workspace.
Specifying only the pathname "." will restrict the search for known
files to the current subdirectory of the workspace.
<p><a name="mtn-list-databases"></a><br><dt><samp><span class="command">mtn list databases</span></samp><a name="index-mtn-list-databases-128"></a><dt><samp><span class="command">mtn list dbs</span></samp><a name="index-mtn-list-dbs-129"></a><dt><samp><span class="command">mtn ls databases</span></samp><a name="index-mtn-ls-databases-130"></a><dt><samp><span class="command">mtn ls dbs</span></samp><a name="index-mtn-ls-dbs-131"></a><dd>
Show all <a href="Managed-Databases.html#Managed-Databases">Managed Databases</a> and the workspaces registered in
them. The commands <samp><span class="command"><a href="mtn-register_005fworkspace.html#mtn-register_005fworkspace">mtn register_workspace</a></span></samp> and
<samp><span class="command"><a href="mtn-unregister_005fworkspace.html#mtn-unregister_005fworkspace">mtn unregister_workspace</a></span></samp> can be used to explicitely
register and unregister workspaces shown within this list.
<br><dt><samp><span class="command">mtn list duplicates [--revision=</span><var>id</var><span class="command">]</span></samp><a name="index-mtn-list-duplicates-_005b_002d_002drevision_003d_0040var_007bid_007d_005d-132"></a><dt><samp><span class="command">mtn ls duplicates</span></samp><a name="index-mtn-ls-duplicates-133"></a><dd><samp><span class="command">ls duplicates</span></samp> is an alias for <samp><span class="command">list duplicates</span></samp>.
<p>This command lists duplicate files in a given revision (defaults to
the workspace base revision). Ignored and unknown files are excluded
from the listing.
<p>Two or more files are considered duplicates if the <span class="sc">sha1</span> hashes of their
contents are equal.
<br><dt><samp><span class="command">mtn list ignored [</span><var>pathname...</var><span class="command">]</span></samp><a name="index-mtn-list-ignored-_005b_0040var_007bpathname_002e_002e_002e_007d_005d-134"></a><dt><samp><span class="command">mtn ls ignored</span></samp><a name="index-mtn-ls-ignored-135"></a><dd><samp><span class="command">ls ignored</span></samp> is an alias for <samp><span class="command">list ignored</span></samp>.
<p>This command lists all files in your workspace that monotone is
intentionally ignoring, due to the results of the <a href="ignore_005ffile.html#ignore_005ffile">ignore_file</a>
hook.
<p>Specifying pathnames to the <samp><span class="command">list ignored</span></samp> command restricts the
set of paths that are searched for ignored files. Ignored files not
included in the specified set of pathnames will not be listed.
<p>From within a subdirectory of the workspace the <samp><span class="command">list
ignored</span></samp> command will, by default, search the entire workspace.
Specifying only the pathname "." will restrict the search for ignored
files to the current subdirectory of the workspace.
<br><dt><samp><span class="command">mtn list keys [</span><var>pattern</var><span class="command">]</span></samp><a name="index-mtn-list-keys-_005b_0040var_007bpattern_007d_005d-136"></a><dt><samp><span class="command">mtn ls keys</span></samp><a name="index-mtn-ls-keys-137"></a><dd><samp><span class="command">ls keys</span></samp> is an alias for <samp><span class="command">list keys</span></samp>.
<p>These commands list <span class="sc">rsa</span> keys held in your keystore and current database.
They do not print out any cryptographic information; they simply list the
names of public and private keys you have on hand.
<p>If <var>pattern</var> is provided, it is used as a glob to limit the keys
listed. Otherwise all keys in your database are listed.
<br><dt><samp><span class="command">mtn list known [</span><var>pathname...</var><span class="command">]</span></samp><a name="index-mtn-list-known-_005b_0040var_007bpathname_002e_002e_002e_007d_005d-138"></a><dt><samp><span class="command">mtn ls known</span></samp><a name="index-mtn-ls-known-139"></a><dd><samp><span class="command">ls known</span></samp> is an alias for <samp><span class="command">list known</span></samp>.
<p>This command lists all files which would become part of the manifest of
the next revision if you committed your workspace at this point.
<p>Specifying pathnames to the <samp><span class="command">list known</span></samp> command restricts
the set of paths that are searched for manifest files. Files not
included in the specified set of pathnames will not be listed.
<p>From within a subdirectory of the workspace the <samp><span class="command">list
known</span></samp> command will, by default, search the entire workspace.
Specifying only the pathname "." will restrict the search for known
files to the current subdirectory of the workspace.
<br><dt><samp><span class="command">mtn list missing [</span><var>pathname...</var><span class="command">]</span></samp><a name="index-mtn-list-missing-_005b_0040var_007bpathname_002e_002e_002e_007d_005d-140"></a><dt><samp><span class="command">mtn ls missing</span></samp><a name="index-mtn-ls-missing-141"></a><dd><samp><span class="command">ls missing</span></samp> is an alias for <samp><span class="command">list missing</span></samp>.
<p>This command lists all files in your workspace's base manifest,
which are not present in the workspace.
<p>Specifying pathnames to the <samp><span class="command">list missing</span></samp> command restricts the
set of paths that are searched for missing files. Missing files not
included in the specified set of pathnames will not be listed.
<p>From within a subdirectory of the workspace the <samp><span class="command">list
missing</span></samp> command will, by default, search the entire workspace.
Specifying only the pathname "." will restrict the search for missing
files to the current subdirectory of the workspace.
<br><dt><samp><span class="command">mtn list tags [</span><var>pattern</var><span class="command">] [--exclude=</span><var>pattern</var><span class="command">]</span></samp><a name="index-mtn-list-tags-_005b_0040var_007bpattern_007d_005d-_005b_002d_002dexclude_003d_0040var_007bpattern_007d_005d-142"></a><dt><samp><span class="command">mtn ls tags</span></samp><a name="index-mtn-ls-tags-143"></a><dd><samp><span class="command">ls tags</span></samp> is an alias for <samp><span class="command">list tags</span></samp>.
<p>This command lists all known tags in your database that match the
given <var>pattern</var> (default all tags). If <samp><span class="option">--exclude</span></samp>
options are provided they are used as globs to exclude specified tags.
<br><dt><samp><span class="command">mtn list unknown [</span><var>pathname...</var><span class="command">]</span></samp><a name="index-mtn-list-unknown-_005b_0040var_007bpathname_002e_002e_002e_007d_005d-144"></a><dt><samp><span class="command">mtn ls unknown</span></samp><a name="index-mtn-ls-unknown-145"></a><dd><samp><span class="command">ls unknown</span></samp> is an alias for <samp><span class="command">list unknown</span></samp>.
<p>This command lists all files in your workspace that monotone knows
nothing about.
<p>Specifying pathnames to the <samp><span class="command">list unknown</span></samp> command restricts the
set of paths that are searched for unknown files. Unknown files not
included in the specified set of pathnames will not be listed.
<p>From within a subdirectory of the workspace the <samp><span class="command">list
unknown</span></samp> command will, by default, search the entire workspace.
Specifying only the pathname "." will restrict the search for unknown
files to the current subdirectory of the workspace.
<dt><samp><span class="command">mtn list vars [</span><var>domain</var><span class="command">]</span></samp><a name="index-mtn-list-vars-_005b_0040var_007bdomain_007d_005d-146"></a><dt><samp><span class="command">mtn ls vars</span></samp><a name="index-mtn-ls-vars-147"></a><dd><samp><span class="command">ls vars</span></samp> is an alias for <samp><span class="command">list vars</span></samp>.
<p>This command lists all vars in your database, or all vars within a given
<var>domain</var>. See <a href="Vars.html#Vars">Vars</a> for more information.
<p><a name="mtn-list-workspaces"></a><br><dt><samp><span class="command">mtn list workspaces</span></samp><a name="index-mtn-list-workspaces-148"></a><dt><samp><span class="command">mtn ls workspaces</span></samp><a name="index-mtn-ls-workspaces-149"></a><dd><samp><span class="command">ls workspaces</span></samp> is an alias for <samp><span class="command">list workspaces</span></samp>.
<p>This command shows all registered workspaces for a database, be it
managed or unmanaged. If no database is given explicitely, defaults to
the workspace' database in which the command is executed. The commands
<samp><span class="command"><a href="mtn-register_005fworkspace.html#mtn-register_005fworkspace">mtn register_workspace</a></span></samp> and <samp><span class="command"><a href="mtn-unregister_005fworkspace.html#mtn-unregister_005fworkspace">mtn unregister_workspace</a></span></samp>
can be used to explicitely register and unregister workspaces shown
within this list. See <a href="Managed-Databases.html#Managed-Databases">Managed Databases</a> for more information.
<p><a name="mtn-log"></a><br><dt><samp><span class="command">mtn log</span></samp><a name="index-mtn-log-150"></a><dt><samp><span class="command">mtn log [--last=</span><var>n</var><span class="command">] [--next=</span><var>n</var><span class="command">] [--from=</span><var>id</var><span class="command"> [...]] [--clear-from] [--to=</span><var>id</var><span class="command"> [...]] [--clear-to] [--revision=</span><var>id</var><span class="command"> [...]] [--[no-]brief] [--[no-]merges] [--[no-]files] [--[no-]graph] [--[no-]diffs] [</span><var>pathname...</var><span class="command">]</span></samp><a name="index-mtn-log-_005b_002d_002dlast_003d_0040var_007bn_007d_005d-_005b_002d_002dnext_003d_0040var_007bn_007d_005d-_005b_002d_002dfrom_003d_0040var_007bid_007d-_005b_002e_002e_002e_005d_005d-_005b_002d_002dclear_002dfrom_005d-_005b_002d_002dto_003d_0040var_007bid_007d-_005b_002e_002e_002e_005d_005d-_005b_002d_002dclear_002dto_005d-_005b_002d_002drevision_003d_0040var_007bid_007d-_005b_002e_002e_002e_005d_005d-_005b_002d_002d_005bno_002d_005dbrief_005d-_005b_002d_002d_005bno_002d_005dmerges_005d-_005b_002d_002d_005bno_002d_005dfiles_005d-_005b_002d_002d_005bno_002d_005dgraph_005d-_005b_002d_002d_005bno_002d_005ddiffs_005d-_005b_0040var_007bpathname_002e_002e_002e_007d_005d-151"></a><dd>See the online help for more options.
<p>This command prints out a log, in forward ancestry order by default
but optionally in reverse ancestry order, of small history summaries.
Each summary contains author, date, branch, changelog and comment
information associated with a revision.
<p>If <samp><span class="option">--brief</span></samp> is given, the output consists of two lines per
revision with the revision ID, the author, the date and the branches
(separated with commas). If the <samp><span class="option">--no-graph</span></samp> option is also
given the output contains only one line per revision.
<p>If <samp><span class="option">--last=</span></samp><var>n</var> is given, at most <var>n</var> log entries will
be given and log will trace through history in reverse-ancestry order,
from newer revisions to older revisions.
<p>If <samp><span class="option">--next=</span></samp><var>n</var> is given, at most <var>n</var> log entries will
be given and log will trace through history in forward-ancestry order,
from older revisions to newer revisions. This is useful to review
changes that will be applied to the workspace when <samp><span class="command">update</span></samp> is
run.
<p>If <samp><span class="option">--from=</span></samp><var>id</var> is given, log starts tracing through
history from the specified revisions, otherwise it starts from the
base revision of your workspace. Log will stop when it reaches the end
of the revision history or revisions specified by the <samp><span class="option">--to</span></samp>
option.
<p><samp><span class="option">--clear-from</span></samp> erases the effect of all previous
<samp><span class="option">--from</span></samp> options. <samp><span class="option">--clear-to</span></samp> erases the effect of all
previous <samp><span class="option">--to</span></samp> options.
<p>When tracing through history in reverse-ancestry order and
<samp><span class="option">--to=</span></samp><var>id</var> is given, log will stop when it reaches the
specified revisions or any of their ancestors or the end of the
revision history. When tracing through history in forward-ancestry
order log will stop when it reaches the specified revisions or any of
their descendants or the end of the revision history.
<p>If <samp><span class="option">--revision=</span></samp><var>id</var> is given, log will print only the
specified revisions.
<p>If both <samp><span class="option">--from</span></samp> and <samp><span class="option">--revision</span></samp> are given only
revisions included by both options will be logged. Revisions specified
by <samp><span class="option">--revision</span></samp> that are beyond the starting points specified
by <samp><span class="option">--from</span></samp> will be excluded.
<p>Additionally, each of the <samp><span class="option">--from</span></samp>, <samp><span class="option">--to</span></samp> and
<samp><span class="option">--revision</span></samp> options accept selectors, see
<a href="Selectors.html#Selectors">Selectors</a>. These can be used in various ways to log interesting
revisions. For example:
<pre class="verbatim"> $ mtn log --revision b:
$ mtn log --revision today
$ mtn log --revision bob
</pre>
will log all revisions from the current branch, all revisions dated
today and all revisions with bob as the author, respectively.
<p>By default, the log entries for merge nodes are shown. If
<samp><span class="option">--no-merges</span></samp> is given, the log entries for these nodes will be
excluded.
<p>If <samp><span class="option">--no-files</span></samp> is given, the log output excludes the list of
files changed in each revision.
<p>If <samp><span class="option">--no-graph</span></samp> is given, the log output excludes the ASCII revision graph
prefix on log output lines.
<p>Specifying <samp><span class="option">--diffs</span></samp> causes the log output to include a unified
diff of the changes in each revision.
<p>If one or more files are given, the command will only log the revisions
where those files are changed.
<p><a name="mtn-manpage"></a><br><dt><samp><span class="command">mtn manpage [--formatted/--plain] [--[no-]hidden]</span></samp><a name="index-mtn-manpage-_005b_002d_002dformatted_002f_002d_002dplain_005d-_005b_002d_002d_005bno_002d_005dhidden_005d-152"></a><dd>The manpage command generates a complete (and if monotone is available
in your language, also localized) manual page for all available commands,
including all user-defined Lua commands.
<p>The default for <samp><span class="option">--formatted/--plain</span></samp> depends on whether
<samp><span class="command">mtn manpage</span></samp> is run from a terminal, or from a shell
script. From a terminal, the default is <samp><span class="option">--formatted</span></samp>; from a
script, it is <samp><span class="option">--plain</span></samp>.
<p>If <samp><span class="option">--formatted</span></samp>, the output is formatted and displayed using
the command given by the Lua hook
<code><a href="get_005fman_005fpage_005fformatter_005fcommand.html#get_005fman_005fpage_005fformatter_005fcommand">get_man_page_formatter_command</a></code> (defaults to
<samp><span class="command">nroff | less</span></samp>).
<p>If <samp><span class="option">--plain</span></samp>, the output is nroff markup.
<p>The option <samp><span class="option">--hidden</span></samp> additionally enables the output of hidden
commands and options, which is deactivated by default.
<br><dt><samp><span class="command">mtn show_conflicts </span><var>rev</var> <var>rev</var></samp><a name="index-mtn-show_005fconflicts-_0040var_007brev_007d-_0040var_007brev_007d-153"></a><dd>This command shows what conflicts would need to be resolved in order to merge
the given revisions; see <a href="Merge-Conflicts.html#Merge-Conflicts">Merge Conflicts</a>.
<p>Note that this does not show conflicts due to update commands, since
in that case one revision is the workspace.
<br><dt><samp><span class="command">mtn status [</span><var>pathname...</var><span class="command">]</span></samp><a name="index-mtn-status-_005b_0040var_007bpathname_002e_002e_002e_007d_005d-154"></a><dd>This command prints a description of the “status” of your workspace.
In particular, it prints:
<ul>
<li>The branch currently selected in <samp><span class="file">_MTN/options</span></samp> for the
workspace.
<li>The revision id of the “parent” revision of the workspace, on which
your in-progress changes are based.
<li>A list of logical changes between the base and current manifest
versions, such as adds, drops, renames, and patches.
</ul>
<p>Specifying optional <var>pathname...</var> arguments to the <samp><span class="command">status</span></samp>
command restricts the set of changes that are visible and results in
only a partial status of the workspace. Changes to files not included
in the specified set of pathnames will be ignored.
<p>From within a subdirectory of the workspace the <samp><span class="command">status</span></samp> command
will, by default, include <em>all changes</em> in the workspace.
Specifying only the pathname "." will restrict <samp><span class="command">status</span></samp> to files
changed within the current subdirectory of the workspace.
<br><dt><samp><span class="command">mtn version [--full | --concise]</span></samp><a name="index-mtn-version-_005b_002d_002dfull-_007c-_002d_002dconcise_005d-155"></a><dd>Shows the program version.
<p>The concise version is one line, for example:
<pre class="example"> monotone 1.0dev (base revision: c91edf22b20f5a8b750a8a02af763412d6b936e8)
</pre>
<p>The full version gives more information, including a changelist of the
monotone source tree from the base revision at the time the executable
was compiled.
</dl>
</body></html>
|