/usr/share/doc/monotone/html/Informative.html is in monotone-doc 1.1-7.
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 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.0, http://www.gnu.org/software/texinfo/ -->
<head>
<title>monotone documentation: Informative</title>
<meta name="description" content="monotone documentation: Informative">
<meta name="keywords" content="monotone documentation: Informative">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="General-Index.html#General-Index" rel="index" title="General Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Command-Reference.html#Command-Reference" rel="up" title="Command Reference">
<link href="Review.html#Review" rel="next" title="Review">
<link href="Network.html#Network" rel="prev" title="Network">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space: nowrap}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: serif; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
<link rel="stylesheet" type="text/css" href="texinfo.css">
</head>
<body lang="en">
<a name="Informative"></a>
<div class="header">
<p>
Next: <a href="Review.html#Review" accesskey="n" rel="next">Review</a>, Previous: <a href="Network.html#Network" accesskey="p" rel="prev">Network</a>, Up: <a href="Command-Reference.html#Command-Reference" accesskey="u" rel="up">Command Reference</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="General-Index.html#General-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Informative-1"></a>
<h3 class="section">4.5 Informative</h3>
<dl compact="compact">
<dt><code>mtn annotate <var>file</var></code>
<a name="index-mtn-annotate-file"></a>
</dt>
<dt><code>mtn annotate [--revision=<var>id</var>] [--revs-only] <var>file</var></code>
<a name="index-mtn-annotate-_005b_002d_002drevision_003did_005d-_005b_002d_002drevs_002donly_005d-file"></a>
</dt>
<dd><p>See <a href="Selectors.html#Selectors">Selectors</a>.
</p>
<p>Dumps an annotated copy of the file to stdout. The output is in the
form:
</p>
<div class="example">
<pre class="example"><short revision id>.. by <author> <date>: <line>
</pre></div>
<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>
<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>
<p>If <samp>--revs-only</samp> is specified, the output format is:
</p><div class="example">
<pre class="example"> <revision id>: <line>
</pre></div>
</dd>
<dt><code>mtn bisect bad [--revision=<var>id</var> ...] [--[no-]move-conflicting-paths]</code>
<a name="index-mtn-bisect-bad-_005b_002d_002drevision_003did-_002e_002e_002e_005d-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d"></a>
</dt>
<dd><p>Mark the specified revisions as “bad” for the current bisection
operation (see <a href="Bisecting.html#Bisecting">Bisecting</a>, see <a href="Selectors.html#Selectors">Selectors</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>
<p>If the update is blocked by conflicting unversioned paths existing in
the workspace this command may be re-issued with the
<samp>--move-conflicting-paths</samp> option. Alternatively, the
<code>bisect update</code> command can be used with this option to update
the workspace and move the conflicting paths out of the way.
</p>
</dd>
<dt><code>mtn bisect good [--revision=<var>id</var> ...] [--[no-]move-conflicting-paths]</code>
<a name="index-mtn-bisect-good-_005b_002d_002drevision_003did-_002e_002e_002e_005d-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d"></a>
</dt>
<dd><p>Mark the specified revisions as “good” for the current bisection
operation (see <a href="Bisecting.html#Bisecting">Bisecting</a>, see <a href="Selectors.html#Selectors">Selectors</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>
<p>If the update is blocked by conflicting unversioned paths existing in
the workspace this command may be re-issued with the
<samp>--move-conflicting-paths</samp> option. Alternatively, the
<code>bisect update</code> command can be used with this option to update
the workspace and move the conflicting paths out of the way.
</p>
</dd>
<dt><code>mtn bisect reset</code>
<a name="index-mtn-bisect-reset"></a>
</dt>
<dd><p>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.
</p>
</dd>
<dt><code>mtn bisect skip [--revision=<var>id</var> ...] [--[no-]move-conflicting-paths]</code>
<a name="index-mtn-bisect-skip-_005b_002d_002drevision_003did-_002e_002e_002e_005d-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d"></a>
</dt>
<dd><p>Mark the specified revisions as “skipped” for the current bisection
operation (see <a href="Bisecting.html#Bisecting">Bisecting</a>, see <a href="Selectors.html#Selectors">Selectors</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>
<p>If the update is blocked by conflicting unversioned paths existing in
the workspace this command may be re-issued with the
<samp>--move-conflicting-paths</samp> option. Alternatively, the
<code>bisect update</code> command can be used with this option to update
the workspace and move the conflicting paths out of the way.
</p>
</dd>
<dt><code>mtn bisect status</code>
<a name="index-mtn-bisect-status"></a>
</dt>
<dd><p>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.
</p>
</dd>
<dt><code>mtn bisect update [--[no-]move-conflicting-paths]</code>
<a name="index-mtn-bisect-update-_005b_002d_002d_005bno_002d_005dmove_002dconflicting_002dpaths_005d"></a>
</dt>
<dd><p>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.
</p>
</dd>
<dt><code>mtn cat [--revision=<var>id</var>] <var>path</var></code>
<a name="index-mtn-cat-_005b_002d_002drevision_003did_005d-path"></a>
</dt>
<dd><p>Write the contents of a specific file <var>path</var> in revision <var>id</var>
(see <a href="Selectors.html#Selectors">Selectors</a>; default to workspace base revision) to standard
output.
</p>
</dd>
<dt><code>mtn complete file <var>partial-id</var></code>
<a name="index-mtn-complete-file-partial_002did"></a>
</dt>
<dt><code>mtn complete key <var>partial-id</var></code>
<a name="index-mtn-complete-key-partial_002did"></a>
</dt>
<dt><code>mtn complete revision <var>partial-id</var></code>
<a name="index-mtn-complete-revision-partial_002did"></a>
</dt>
<dd>
<p>These commands print out all known completions of a partial <small>SHA1</small>
value (<em>not</em> a selector), 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:
</p>
<div class="smallexample">
<pre class="smallexample">$ mtn complete revision fa36
fa36deead87811b0e15208da2853c39d2f6ebe90
fa36b76dd0139177b28b379fe1d56b22342e5306
fa36965ec190bee14c5afcac235f1b8e2239bb2a
</pre></div>
<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 <code>bash</code> and <code>zsh</code>.
</p>
<a name="mtn-diff"></a></dd>
<dt><code>mtn diff [--unified] [--[no-]show-encloser]</code>
<a name="index-mtn-diff-_005b_002d_002dunified_005d-_005b_002d_002d_005bno_002d_005dshow_002dencloser_005d"></a>
</dt>
<dt><code>mtn diff --context [--[no-]show-encloser]</code>
<a name="index-mtn-diff-_002d_002dcontext-_005b_002d_002d_005bno_002d_005dshow_002dencloser_005d"></a>
</dt>
<dt><code>mtn diff --external [--diff-args=<var>argstring</var>]</code>
<a name="index-mtn-diff-_002d_002dexternal-_005b_002d_002ddiff_002dargs_003dargstring_005d"></a>
</dt>
<dt><code>mtn diff <var>pathname...</var></code>
<a name="index-mtn-diff-pathname_002e_002e_002e"></a>
</dt>
<dt><code>mtn diff [--reverse] --revision=<var>id</var></code>
<a name="index-mtn-diff-_005b_002d_002dreverse_005d-_002d_002drevision_003did"></a>
</dt>
<dt><code>mtn diff --revision=<var>id</var> <var>pathname...</var></code>
<a name="index-mtn-diff-_002d_002drevision_003did-pathname_002e_002e_002e"></a>
</dt>
<dt><code>mtn diff --revision=<var>id1</var> --revision=<var>id2</var></code>
<a name="index-mtn-diff-_002d_002drevision_003did1-_002d_002drevision_003did2"></a>
</dt>
<dt><code>mtn diff --revision=<var>id1</var> --revision=<var>id2</var> <var>pathname...</var></code>
<a name="index-mtn-diff-_002d_002drevision_003did1-_002d_002drevision_003did2-pathname_002e_002e_002e"></a>
</dt>
<dt><code>mtn di</code>
<a name="index-mtn-di"></a>
</dt>
<dd><p><code>di</code> is an alias for <code>diff</code>. See online help for more
options. See <a href="Selectors.html#Selectors">Selectors</a>.
</p>
<p>These commands print out textual difference listings between various
manifest versions. With no <samp>--revision</samp> options, <code>diff</code>
will print the difference from the base revision to the current
revision in the workspace.
</p>
<p>With one <samp>--revision</samp> option, <code>diff</code> will print the
difference from the revision <var>id</var> to the current revision in the
workspace. If <samp>--reverse</samp> is given, the order of the diff is
reversed.
</p>
<p>With two <samp>--revision</samp> options <code>diff</code> will print the
difference from revision <var>id1</var> to <var>id2</var>, ignoring any
workspace.
</p>
<p>In all cases, monotone will print a textual summary – identical to
the summary presented by <code>mtn status</code> – 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 <code>patch</code>.
</p>
<p>Specifying pathnames to the <code>diff</code> 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>
<p>From within a subdirectory of the workspace the <code>diff</code> command
will, by default, include <em>all changes</em> in the workspace.
Specifying only the pathname "." will restrict <code>diff</code> to files
changed within the current subdirectory of the workspace.
</p>
<p>The output format of <code>diff</code> is controlled by the options
<samp>--unified</samp>, <samp>--context</samp>, <samp>--no-show-encloser</samp>, and
<samp>--external</samp>. By default, monotone uses its built-in diff
algorithm to produce a listing in “unified diff” format (analogous
to running the program <code>diff <samp>-u</samp></code>); you can also explicitly
request this with <samp>--unified</samp>. The built-in diff algorithm can
also produce “context diff” format (analogous to <code>diff <samp>-c</samp></code>),
which you request by specifying <samp>--context</samp>. The short options
that <code>diff</code> accepts for these modes, <samp>-u</samp> and
<samp>-c</samp>, also work.
</p>
<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>--no-show-encloser</samp>. The options that
<code>diff</code> accepts for this mode, <samp>-p</samp> and
<samp>--show-c-function</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="External-Diff-Tools.html#get_005fencloser_005fpattern">get_encloser_pattern</a>. For the regular expression syntax, see
<a href="Regexps.html#Regexps">Regexps</a>.
</p>
<p>Sometimes, you may want more flexibility in output formats; for these
cases, you can use <samp>--external</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>--diff-args</samp> to pass additional arguments controlling
formatting. The actual invocation of <code>diff</code>, default
arguments passed to it, and so on, are controlled by the hook
<a href="External-Diff-Tools.html#external_005fdiff">external_diff</a>.
</p>
</dd>
<dt><code>mtn help [--[no-]hidden] <var>command...</var></code>
<a name="index-mtn-help-_005b_002d_002d_005bno_002d_005dhidden_005d-command_002e_002e_002e"></a>
</dt>
<dd><p>Displays help about commands and options.
</p>
<a name="mtn-list-branches"></a></dd>
<dt><code>mtn list branches [<var>pattern</var>] [--exclude=<var>pattern</var>]</code>
<a name="index-mtn-list-branches-_005bpattern_005d-_005b_002d_002dexclude_003dpattern_005d"></a>
</dt>
<dt><code>mtn ls branches</code>
<a name="index-mtn-ls-branches"></a>
</dt>
<dd><p><code>ls branches</code> is an alias for <code>list branches</code>.
</p>
<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>-exclude</samp>
options are provided they are used as globs to exclude specified
branches. In addition, branches for which the Lua hook
<a href="User-Defaults.html#ignore_005fbranch">ignore_branch</a> returns true are excluded.
</p>
<p>Normally, branches that have been suspended are not listed; the global
option <samp>--ignore-suspend-certs</samp> causes suspended branches to
be listed; see <code><a href="Review.html#mtn-suspend">mtn suspend</a></code>.
</p>
</dd>
<dt><code>mtn list certs <var>id</var></code>
<a name="index-mtn-list-certs-id"></a>
</dt>
<dt><code>mtn ls certs</code>
<a name="index-mtn-ls-certs"></a>
</dt>
<dd><p><code>ls certs</code> is an alias for <code>list certs</code>.
</p>
<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:
</p><ul>
<li> The key used to sign the certificate
</li><li> Whether the signature on the certificate is <code>ok</code> or <code>bad</code>
</li><li> The name of the certificate
</li><li> The value of the certificate
</li></ul>
<p>For example, this command lists the certificates associated with a
particular version of monotone itself, in the monotone development
branch:
</p>
<div class="smallexample">
<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></div>
</dd>
<dt><code>mtn list changed [<var>pathname...</var>]</code>
<a name="index-mtn-list-changed-_005bpathname_002e_002e_002e_005d"></a>
</dt>
<dt><code>mtn ls changed</code>
<a name="index-mtn-ls-changed"></a>
</dt>
<dd><p><code>ls changed</code> is an alias for <code>list changed</code>.
See online help for more options.
</p>
<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>
<p>Specifying pathnames to the <code>list changed</code> 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>
<p>From within a subdirectory of the workspace the <code>list
changed</code> 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></dd>
<dt><code>mtn list databases</code>
<a name="index-mtn-list-databases"></a>
</dt>
<dt><code>mtn list dbs</code>
<a name="index-mtn-list-dbs"></a>
</dt>
<dt><code>mtn ls databases</code>
<a name="index-mtn-ls-databases"></a>
</dt>
<dt><code>mtn ls dbs</code>
<a name="index-mtn-ls-dbs"></a>
</dt>
<dd>
<p>Show all <a href="Managed-Databases.html#Managed-Databases">Managed Databases</a> and the workspaces registered in
them. The commands <code><a href="Variables.html#mtn-register_005fworkspace">mtn register_workspace</a></code> and
<code><a href="Variables.html#mtn-unregister_005fworkspace">mtn unregister_workspace</a></code> can be used to explicitely
register and unregister workspaces shown within this list.
</p>
</dd>
<dt><code>mtn list duplicates [--revision=<var>id</var>]</code>
<a name="index-mtn-list-duplicates-_005b_002d_002drevision_003did_005d"></a>
</dt>
<dt><code>mtn ls duplicates</code>
<a name="index-mtn-ls-duplicates"></a>
</dt>
<dd><p><code>ls duplicates</code> is an alias for <code>list duplicates</code>. See
<a href="Selectors.html#Selectors">Selectors</a>.
</p>
<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>
<p>Two or more files are considered duplicates if the <small>SHA1</small> hashes of their
contents are equal.
</p>
</dd>
<dt><code>mtn list ignored [--[no-]recursive] [<var>pathname...</var>]</code>
<a name="index-mtn-list-ignored-_005b_002d_002d_005bno_002d_005drecursive_005d-_005bpathname_002e_002e_002e_005d"></a>
</dt>
<dt><code>mtn ls ignored</code>
<a name="index-mtn-ls-ignored"></a>
</dt>
<dd><p><code>ls ignored</code> is an alias for <code>list ignored</code>.
</p>
<p>This command lists all files in your workspace that monotone is
intentionally ignoring, due to the results of the <a href="User-Defaults.html#ignore_005ffile">ignore_file</a>
hook.
</p>
<p>Specifying pathnames to the <code>list ignored</code> 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>
<p>From within a subdirectory of the workspace the <code>list
ignored</code> 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.
</p>
<p>Default is <samp>--recursive</samp>; all directories will be
traversed. Specifying <samp>--no-recursive</samp> restricts the listing to
the root directory of the specified path (or the workspace, if no path
is given).
</p>
</dd>
<dt><code>mtn list keys [<var>pattern</var>]</code>
<a name="index-mtn-list-keys-_005bpattern_005d"></a>
</dt>
<dt><code>mtn ls keys</code>
<a name="index-mtn-ls-keys"></a>
</dt>
<dd><p><code>ls keys</code> is an alias for <code>list keys</code>.
</p>
<p>These commands list <small>RSA</small> 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>
<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.
</p>
</dd>
<dt><code>mtn list known [<var>pathname...</var>]</code>
<a name="index-mtn-list-known-_005bpathname_002e_002e_002e_005d"></a>
</dt>
<dt><code>mtn ls known</code>
<a name="index-mtn-ls-known"></a>
</dt>
<dd><p><code>ls known</code> is an alias for <code>list known</code>.
</p>
<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>
<p>Specifying pathnames to the <code>list known</code> 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>
<p>From within a subdirectory of the workspace the <code>list
known</code> 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>
</dd>
<dt><code>mtn list missing [<var>pathname...</var>]</code>
<a name="index-mtn-list-missing-_005bpathname_002e_002e_002e_005d"></a>
</dt>
<dt><code>mtn ls missing</code>
<a name="index-mtn-ls-missing"></a>
</dt>
<dd><p><code>ls missing</code> is an alias for <code>list missing</code>.
</p>
<p>This command lists all files in your workspace’s base manifest,
which are not present in the workspace.
</p>
<p>Specifying pathnames to the <code>list missing</code> 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>
<p>From within a subdirectory of the workspace the <code>list
missing</code> 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.
</p>
</dd>
<dt><code>mtn list tags [<var>pattern</var>] [--exclude=<var>pattern</var>]</code>
<a name="index-mtn-list-tags-_005bpattern_005d-_005b_002d_002dexclude_003dpattern_005d"></a>
</dt>
<dt><code>mtn ls tags</code>
<a name="index-mtn-ls-tags"></a>
</dt>
<dd><p><code>ls tags</code> is an alias for <code>list tags</code>.
</p>
<p>This command lists all known tags in your database that match the
given <var>pattern</var> (default all tags). If <samp>--exclude</samp>
options are provided they are used as globs to exclude specified tags.
</p>
</dd>
<dt><code>mtn list unknown [--[no-]recursive] [<var>pathname...</var>]</code>
<a name="index-mtn-list-unknown-_005b_002d_002d_005bno_002d_005drecursive_005d-_005bpathname_002e_002e_002e_005d"></a>
</dt>
<dt><code>mtn ls unknown</code>
<a name="index-mtn-ls-unknown"></a>
</dt>
<dd><p><code>ls unknown</code> is an alias for <code>list unknown</code>.
</p>
<p>This command lists all files in your workspace that monotone knows
nothing about.
</p>
<p>Specifying pathnames to the <code>list unknown</code> 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>
<p>From within a subdirectory of the workspace the <code>list
unknown</code> 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.
</p>
<p>Default is <samp>--recursive</samp>; all directories will be
traversed. Specifying <samp>--no-recursive</samp> restricts the listing to
the root directory of the specified path (or the workspace, if no path
is given).
</p>
</dd>
<dt><code>mtn list vars [<var>domain</var>]</code>
<a name="index-mtn-list-vars-_005bdomain_005d"></a>
</dt>
<dt><code>mtn ls vars</code>
<a name="index-mtn-ls-vars"></a>
</dt>
<dd><p><code>ls vars</code> is an alias for <code>list vars</code>.
</p>
<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></dd>
<dt><code>mtn list workspaces</code>
<a name="index-mtn-list-workspaces"></a>
</dt>
<dt><code>mtn ls workspaces</code>
<a name="index-mtn-ls-workspaces"></a>
</dt>
<dd><p><code>ls workspaces</code> is an alias for <code>list workspaces</code>.
</p>
<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
<code><a href="Variables.html#mtn-register_005fworkspace">mtn register_workspace</a></code> and <code><a href="Variables.html#mtn-unregister_005fworkspace">mtn unregister_workspace</a></code>
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></dd>
<dt><code>mtn log</code>
<a name="index-mtn-log"></a>
</dt>
<dt><code>mtn log [--last=<var>n</var>] [--next=<var>n</var>] [--from=<var>id</var> [...]] [--clear-from] [--to=<var>id</var> [...]] [--clear-to] [--revision=<var>id</var> [...]] [--[no-]brief] [--[no-]merges] [--[no-]files] [--[no-]graph] [--[no-]diffs] [<var>pathname...</var>]</code>
<a name="index-mtn-log-_005b_002d_002dlast_003dn_005d-_005b_002d_002dnext_003dn_005d-_005b_002d_002dfrom_003did-_005b_002e_002e_002e_005d_005d-_005b_002d_002dclear_002dfrom_005d-_005b_002d_002dto_003did-_005b_002e_002e_002e_005d_005d-_005b_002d_002dclear_002dto_005d-_005b_002d_002drevision_003did-_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-_005bpathname_002e_002e_002e_005d"></a>
</dt>
<dd><p>See the online help for more options. See <a href="Selectors.html#Selectors">Selectors</a>.
</p>
<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>
<p>If <samp>--brief</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>--no-graph</samp> option is also
given the output contains only one line per revision.
</p>
<p>If <samp>--last=</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>
<p>If <samp>--next=</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 <code>update</code> is
run.
</p>
<p>If <samp>--from=</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>--to</samp>
option.
</p>
<p><samp>--clear-from</samp> erases the effect of all previous
<samp>--from</samp> options. <samp>--clear-to</samp> erases the effect of all
previous <samp>--to</samp> options.
</p>
<p>When tracing through history in reverse-ancestry order and
<samp>--to=</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>
<p>If <samp>--revision=</samp><var>id</var> is given, log will print only the
specified revisions.
</p>
<p>If both <samp>--from</samp> and <samp>--revision</samp> are given only
revisions included by both options will be logged. Revisions specified
by <samp>--revision</samp> that are beyond the starting points specified
by <samp>--from</samp> will be excluded.
</p>
<p>Additionally, each of the <samp>--from</samp>, <samp>--to</samp> and
<samp>--revision</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:
</p><pre class="verbatim">$ mtn log --revision b:
$ mtn log --revision today
$ mtn log --revision bob
</pre><p>will log all revisions from the current branch, all revisions dated
today and all revisions with bob as the author, respectively.
</p>
<p>By default, the log entries for merge nodes are shown. If
<samp>--no-merges</samp> is given, the log entries for these nodes will be
excluded.
</p>
<p>If <samp>--no-files</samp> is given, the log output excludes the list of
files changed in each revision.
</p>
<p>If <samp>--no-graph</samp> is given, the log output excludes the ASCII revision graph
prefix on log output lines.
</p>
<p>Specifying <samp>--diffs</samp> causes the log output to include a unified
diff of the changes in each revision.
</p>
<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></dd>
<dt><code>mtn manpage [--formatted/--plain] [--[no-]hidden]</code>
<a name="index-mtn-manpage-_005b_002d_002dformatted_002f_002d_002dplain_005d-_005b_002d_002d_005bno_002d_005dhidden_005d"></a>
</dt>
<dd><p>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>
<p>The default for <samp>--formatted/--plain</samp> depends on whether
<code>mtn manpage</code> is run from a terminal, or from a shell
script. From a terminal, the default is <samp>--formatted</samp>; from a
script, it is <samp>--plain</samp>.
</p>
<p>If <samp>--formatted</samp>, the output is formatted and displayed using
the command given by the Lua hook
<code><a href="User-Defaults.html#get_005fman_005fpage_005fformatter_005fcommand">get_man_page_formatter_command</a></code> (defaults to
<code>nroff | less</code>).
</p>
<p>If <samp>--plain</samp>, the output is nroff markup.
</p>
<p>The option <samp>--hidden</samp> additionally enables the output of hidden
commands and options, which is deactivated by default.
</p>
</dd>
<dt><code>mtn show_conflicts <var>rev</var> <var>rev</var></code>
<a name="index-mtn-show_005fconflicts-rev-rev"></a>
</dt>
<dd><p>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>, see <a href="Selectors.html#Selectors">Selectors</a>.
</p>
<p>Note that this does not show conflicts due to update commands, since
in that case one revision is the workspace.
</p>
</dd>
<dt><code>mtn status [<var>pathname...</var>]</code>
<a name="index-mtn-status-_005bpathname_002e_002e_002e_005d"></a>
</dt>
<dd><p>This command prints a description of the “status” of your workspace.
In particular, it prints:
</p><ul>
<li> The branch currently selected in <samp>_MTN/options</samp> for the
workspace.
</li><li> The revision id of the “parent” revision of the workspace, on which
your in-progress changes are based.
</li><li> A list of logical changes between the base and current manifest
versions, such as adds, drops, renames, and patches.
</li></ul>
<p>Specifying optional <var>pathname...</var> arguments to the <code>status</code>
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>
<p>From within a subdirectory of the workspace the <code>status</code> command
will, by default, include <em>all changes</em> in the workspace.
Specifying only the pathname "." will restrict <code>status</code> to files
changed within the current subdirectory of the workspace.
</p>
</dd>
<dt><code>mtn version [--full | --concise]</code>
<a name="index-mtn-version-_005b_002d_002dfull-_007c-_002d_002dconcise_005d"></a>
</dt>
<dd><p>Shows the program version.
</p>
<p>The concise version is one line, for example:
</p><div class="example">
<pre class="example">monotone 1.0dev (base revision: c91edf22b20f5a8b750a8a02af763412d6b936e8)
</pre></div>
<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.
</p>
</dd>
</dl>
<hr>
<div class="header">
<p>
Next: <a href="Review.html#Review" accesskey="n" rel="next">Review</a>, Previous: <a href="Network.html#Network" accesskey="p" rel="prev">Network</a>, Up: <a href="Command-Reference.html#Command-Reference" accesskey="u" rel="up">Command Reference</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="General-Index.html#General-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|